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.2.2 to 0.2.3

2

package.json
{
"name": "decomment",
"version": "0.2.2",
"version": "0.2.3",
"description": "Removes comments from JSON, JavaScript, CSS and HTML.",

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

@@ -9,3 +9,3 @@ decomment

### Installing
## Installing

@@ -16,3 +16,3 @@ ```

### Testing
## Testing

@@ -28,3 +28,3 @@ ```

### Usage
## Usage

@@ -39,10 +39,9 @@ ```js

### Features
## Features
* Removes both single and multi-line comments from JSON, JavaScript and CSS
* Automatically recognizes HTML and removes all `<!-- comments -->` from it
* Removes unnecessary gaps on empty lines and the ones left by comment blocks
* Does not change layout / formatting of the original document
* Can handle input code of any size
* Compliant with ECMAScript 6
* Removes lines that have only comments on them
* Compatible with JSON5 and ECMAScript 6

@@ -52,3 +51,3 @@ The library does not support mixed content - HTML with JavaScript or CSS in it.

### Performance
## Performance

@@ -58,1 +57,6 @@ In terms of the performance, this library is as fast as it gets, in part because it makes no use of regular expressions.

For example, it churns through [AngularJS 1.5 Core](https://code.angularjs.org/1.5.0-rc.0/angular.js) (1.1MB ~ 30,000 lines of JavaScript) in under 40ms.
## License
Copyright © 2015 [Vitaly Tomilov](https://github.com/vitaly-t)
Released under the MIT license.
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