removes Inline and Block comments
npm install remove-commentsInstallation
-----
npm install remove-comments
``js`
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:
`js``
var a = 1;
var b = 2;