1.0.0 • Published 7 years ago
remove-comments v1.0.0
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;
1.0.0
7 years ago