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

jse

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jse - npm Package Compare versions

Comparing version 0.0.1 to 0.0.3

lib/jse.js

2

package.json
{
"name": "jse",
"description": "Evaluate JavaScript with pipe.",
"version": "0.0.1",
"version": "0.0.3",
"author": "You Kinjoh <you.kinjoh@gmail.com>",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -15,2 +15,3 @@ # jse: JavaScript Evaluator

$ jse [one liner]
$ jse -p [one liner]
$ jse -m [one liner for array]

@@ -22,5 +23,8 @@ ```

```
$ #like "ls | cut -f1 -d."
$ ls | jse -p "__LINE__.split('.')[0]"
$ ls | jse -mp "__LINES__.map(function(line) {return line.split('.')[0];}).join('\n')"
$ #like "grep error log.log"
$ less log.log | $0 "if (/error/.test(__LINE__)) {console.log(__LINE__);}"',
$ less log.log | $0 -m "__LINES__.filter(function(line) {return /error/.test(line);}).forEach(function(line) {console.log(line);});"'
$ less log.log | jse "if (/error/.test(__LINE__)) {console.log(__LINE__);}"
$ less log.log | jse -m "__LINES__.filter(function(line) {return /error/.test(line);}).forEach(function(line) {console.log(line);});"
```

@@ -31,4 +35,5 @@

```
-p, --print Print result.
-m, --multiline Use array of multiline.
-h, --help Display help.
-h, --help Display help.
```

Sorry, the diff of this file is not supported yet

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