Comparing version 0.0.1 to 0.0.3
{ | ||
"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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
9650
14
57
37
2