Package Exports
- strip-comments
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strip-comments) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
strip-comments 
Strip block comments or line comments from code
Should work with any language that uses the same syntax, e.g. JavaScript, LESS, SASS/SCSS, CSS.
Install
npm
npm i strip-comments --savebower
npm install strip-comments --saveUsage
var strip = require('strip-comments');all comments
strip( str );Removes
// This commentand
/**
* this
* comment
*/
var foo = function(/* and these */) {}line comments
strip.line( str );Removes
// This commentNot
/**
* this
* comment
*/
var foo = function(/* and these */) {}block comments
strip.block( str );Removes
/**
* this
* comment
*/
var foo = function(/* and these */) {}Not
// This commentTests
mocha -R specAuthor
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license