Remarks
Simple two-way conversion and maintenance of JSON comments
Installation
npm install --save remarks
Sample usage
/* Optionally takes a JSON string that should be an array */ var remarks; // Example using knex ; // meanwhile, some time later... remarks; ; ;
API
constructor
add
Add a comment to the list of comments
: void;
parse
Re-populate the array with entirely new comments
: void;
toArray
Return a copy of the comments array
: Array<T>;
toString
Return the comments as a JSON string
: string;
License
MIT