0.1.0 • Published 12 years ago
coffee-strip v0.1.0
coffee-strip 
Strip comments from code. Remove both line comments and block comments.
Quickstart
npm i coffee-strip --saveUsage
var strip = require('coffee-strip');all comments
strip( str );Removes all comments:
###
comments like
this
###
doNothing: () ->
###
and like
this
###
# or like this
class myClass
# and like this
doNothing: () ->line comments
strip.line( str );Removes all line comments:
# This commentbut not block comments
###
this
comment
###block comments
strip.block( str );Removes all block comments:
###
this
comment
###but not line comments
# This commentTests
mocha -R specAuthor
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license
0.1.0
12 years ago