
Security News
Federal Government Rescinds Software Supply Chain Mandates, Makes SBOMs Optional
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.
strip-coffee-comments
Advanced tools
Strip comments from CoffeScript. Remove both line comments and block comments.

Strip comments from CoffeScript. Remove both line comments and block comments.
Install with npm:
npm i strip-coffee-comments --save-dev
var strip = require('strip-coffee-comments');
strip( str );
Removes all comments:
###
comments like
this
###
doNothing: () ->
###
and like
this
###
# or like this
class myClass
# and like this
doNothing: () ->
strip.line( str );
Removes all line comments:
# This comment
but not block comments
###
this
comment
###
strip.block( str );
Removes all block comments:
###
this
comment
###
but not line comments
# This comment
mocha -R spec
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on July 10, 2014.
FAQs
Strip comments from CoffeScript. Remove both line comments and block comments.
We found that strip-coffee-comments demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.