uncommentify
A through stream that removes comments with falafel.
example
// Strip banner comments from jsvar strip = ;var fs = ;fs ;
// Strip ALL comments from jsvar strip = all: true;var fs = ;fs ;
// Strip comments synchronouslyvar strip = sync;var fs = ;var uncommented = ;
Example Banner Comments
By default, uncommentify will just remove the first found banner comment.
/* I am a block * banner comment */
// I am // a line// banner comment
/*! I will not be removed even though Im a banner comment unless you force me. */
options
var strip = all: false force: false line: true block: true;
all
Removes all comments.
force
Will remove comments that begin with /*!
or //!
which are not normally removed.
line
Set to false
to not remove // line
comments.
block
Set to false
to not remove /* block */
comments.
releases
- 0.1.1 - add sync
- 0.1.0 - initial release
license
MIT