drop-comments

1.0.4 • Public • Published

drop-comments

Remove comments from string

Installation

npm install drop-comments

Useage

var DC = require('drop-comments');
 
DC('// comments\nvar a = 1;', type)

Options

type:

  • first
  • block
  • line

If not set, the default is all

Demo

node ./demo/runthis.js

Thanks extract-comments

Readme

Keywords

Package Sidebar

Install

npm i drop-comments

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • shinate