New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-strip-inline-comments

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-strip-inline-comments - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

package.json
{
"name": "postcss-strip-inline-comments",
"version": "0.1.2",
"version": "0.1.3",
"description": "Strip inline comments using the postcss-scss parser",

@@ -5,0 +5,0 @@ "keywords": [

@@ -9,3 +9,3 @@ # PostCSS strip inline comments [![Build Status](https://travis-ci.org/mummybot/postcss-strip-inline-comments.svg?branch=master)](https://travis-ci.org/mummybot/postcss-strip-inline-comments)

```css
```scss
/* This comment will remain */

@@ -24,2 +24,4 @@ // This comment will be removed

###Install
```npm install postcss-strip-inline-comments --save-dev```

@@ -85,1 +87,15 @@

```
###Node
```javascript
import postcss from 'postcss';
import syntax from 'postcss-scss';
import stripInlineComments from 'strip-inline-comments';
let css = fs.readFileSync('style.css', 'utf8');
postcss([stripInlineComments]).process(css, { parser: syntax }).then( result => {
console.log(result.css);
});
```
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