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
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();
builder.writeObject(block);
builder.newBlock();
builder.writeLine("Test Block");
var comment = builder.toString();
--- Outputs