Comparing version 0.7.0 to 0.7.1
{ | ||
"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 @@ |
32170
128