Comparing version 0.2.2 to 0.2.3
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21303
57