remove-comments
v1.0.0
Published
removes Inline and Block comments
Maintainers
Readme
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;