remove-comments

1.0.0 • Public • Published

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;

Package Sidebar

Install

npm i remove-comments

Weekly Downloads

6

Version

1.0.0

License

ISC

Last publish

Collaborators

  • kishanrajdev