any-shell-escape
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "any-shell-escape", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Escape and stringify an array of arguments to be executed on the shell", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -28,3 +28,3 @@ shell-escape | ||
``` | ||
curl -v -H $'Location;' -H $'User-Agent: FoorBar\'s so-called "Browser"' $'http://www.daveeddy.com/?name=dave&age=24' | ||
curl -v -H 'Location;' -H 'User-Agent: FoorBar'"'"'s so-called "Browser"' 'http://www.daveeddy.com/?name=dave&age=24' | ||
``` | ||
@@ -54,3 +54,3 @@ | ||
``` | ||
echo $'hello!' $'how are you doing $USER' $'"double"' $'\'single\'' | ||
echo 'hello!' 'how are you doing $USER' '"double"' "'"'single'"'" | ||
``` | ||
@@ -67,3 +67,3 @@ | ||
``` | ||
$ echo $'hello!' $'how are you doing $USER' $'"double"' $'\'single\'' | ||
$ echo 'hello!' 'how are you doing $USER' '"double"' "'"'single'"'" | ||
hello! how are you doing $USER "double" 'single' | ||
@@ -70,0 +70,0 @@ ``` |
@@ -7,3 +7,3 @@ var util = require('util'), | ||
if (!/^[A-Za-z0-9_\/-]+$/.test(path)) | ||
return '$' + util.inspect(path); | ||
return ("'" + path.replace(/'/g, "'\"'\"'") + "'").replace(/''/g, ''); | ||
else | ||
@@ -10,0 +10,0 @@ return path; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4397