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

decomment

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decomment - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

2

package.json
{
"name": "decomment",
"version": "0.7.0",
"version": "0.7.1",
"description": "Removes comments from JSON, JavaScript, CSS, HTML, etc.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -102,8 +102,11 @@ decomment

CSS is the main example of where to use this method:
This method is good for any text file that uses syntax `//` and `/**/` for comments,
such as: `.CSS`, `.CPP`, `.H`, etc.
Example:
```js
var decomment = require('decomment');
var text = "cssClass{color:Red;}// comments";
decomment.text(text); //=> cssClass{color:Red;}
var text = ".my-class{color:Red;}// comments";
decomment.text(text); //=> .my-class{color:Red;}
```

@@ -110,0 +113,0 @@

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