strip-comments-strings
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "strip-comments-strings", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Strip or extract comments, strings or both from source code.", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs", |
@@ -16,5 +16,3 @@ ## Description | ||
``` | ||
<br/><br/> | ||
or | ||
<br/><br/> | ||
--- | ||
@@ -25,3 +23,3 @@ | ||
``` | ||
<br/><br/> | ||
--- | ||
@@ -37,3 +35,3 @@ ### Examples | ||
```javascript | ||
let str = fs.readFileSync(path.join(__dirname, "./example.js"), "utf-8"); | ||
let str = fs.readFileSync("./example.js", "utf-8"); | ||
let result = clearStrings(str); | ||
@@ -43,4 +41,4 @@ console.log(result) | ||
Before ↴ | ||
```text | ||
Before ↴ (example.js) | ||
```text | ||
let c1 = "Ho you \" How are \" the you?"; | ||
@@ -72,3 +70,3 @@ let c2 = "dfgdfd dfgdfgd \" '*"; | ||
```javascript | ||
let str = fs.readFileSync(path.join(__dirname, "./example.js"), "utf-8"); | ||
let str = fs.readFileSync("./example.js", "utf-8"); | ||
let result = stripStrings(str); | ||
@@ -78,3 +76,3 @@ console.log(result) | ||
Before ↴ | ||
Before ↴ (example.js) | ||
```text | ||
@@ -108,3 +106,3 @@ let c1 = "Ho you \" How are \" the you?"; | ||
```javascript | ||
let str = fs.readFileSync(path.join(__dirname, "./example.js"), "utf-8"); | ||
let str = fs.readFileSync("./example.js", "utf-8"); | ||
let result = stripComments(str); | ||
@@ -114,3 +112,3 @@ console.log(result) | ||
Before ↴ | ||
Before (example.js) ↴ | ||
```text | ||
@@ -237,3 +235,3 @@ //abcdefghij | ||
```javascript | ||
let str = fs.readFileSync(path.join(__dirname, "./example-6.js"), "utf-8"); | ||
let str = fs.readFileSync("./example.js", "utf-8"); | ||
@@ -247,3 +245,3 @@ str = stripStrings(str, function (info) | ||
Before ↴ | ||
Before (example.js) ↴ | ||
```text | ||
@@ -250,0 +248,0 @@ "What" |
24196
362