Skip to content

EliteScientist/comment-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Javascript Comment Block Builder

This library allows you to build comment blocks.

Install

use "npm install comment-builder" to download and install

Examples

var CommentBuilder = require("comment-builder");

var builder	= new CommentBuilder();

builder.writeLine("Testing");
var comment = builder.toString()

--- Outputs
/**
 * Testing
 **/


var builder	= new CommentBuilder();

var block = {};
block.param   = "input {String} Input Parameter"; 
block.see     = "http://www.google.com";
block.example = "Test example";

builder.writeLine("My Test Example");
builder.writeLine(); // Empty Line
builder.writeObject(block);

builder.newBlock();
builder.writeLine("Test Block");

var comment = builder.toString();

--- Outputs

/**
 * My Test Example
 *
 * @param input {String} Input Parameter
 * @see http://www.google.com
 * @example Test Example
 **/

/**
 * Test Block
 **/

About

JS Comment Builder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published