Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

strip-css-comments

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strip-css-comments

Strip comments from CSS

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

strip-css-comments Build Status

Strip comments from CSS

Also available as a gulp/grunt/broccoli plugin.

Usage

$ npm install --save strip-css-comments
var stripCssComments = require('strip-css-comments');

stripCssComments('body { /* unicorns */color: hotpink; }');
//=> body { color: hotpink; }

CLI

$ npm install --global strip-css-comments
$ strip-css-comments --help

  Usage
    strip-css-comments <input-file> > <output-file>
    strip-css-comments < <input-string>

  Example
    strip-css-comments src/app.css > dist/app.css

License

MIT © Sindre Sorhus

Keywords

FAQs

Package last updated on 24 Oct 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc