1.0.4 • Published 8 years ago

drop-comments v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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