1.0.0 • Published 7 years ago

remove-comments v1.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

remove-comments

Installation

npm install remove-comments

Syntax

var removeComments = require('remove-comments');
var noCommentsStr = removeComments('//this is inline comment \n var a = 1; /* this is block comment \n */ \n var b = 2;');
console.log(noCommentsStr);

Output of above example is:

var a = 1;
var b = 2;