New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

strip-comments-strings

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strip-comments-strings - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"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"

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