CommentFarmer
Intro
CommentFarmer
is a node package that can parse out single or multi line comments from javascript or other languages which use the //
or /* */
system for denoting comments. Is it available on NPM for installation.
Installation
To install type in your shell
$ npm install commentfarmer
Usage
To initalize on instance of the parser,
var ps = ;var parser = ;
to parse a string,
parser;
to get the comments or clear them,
console; // 'this line assigns a variable, so does this one'parser;
License
This code is MIT licensed
Contribution
Feel free to suggest changes or contribute