{"_id":"shell-escape","_rev":"111717","name":"shell-escape","description":"Escape and stringify an array of arguments to be executed on the shell","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"xorax","email":"martin@xorax.info"}],"time":{"modified":"2021-06-03T10:43:34.000Z","created":"2013-06-06T16:13:46.926Z","0.2.0":"2015-02-11T22:44:58.290Z","0.1.0":"2014-02-10T18:51:06.629Z","0.0.1":"2013-08-29T14:55:44.278Z","0.0.0":"2013-06-06T16:13:46.926Z"},"users":{"tongjieme":true,"starfox64":true,"bcoe":true,"soenkekluth":true},"author":"","repository":{"type":"git","url":"git://github.com/xxorax/node-shell-escape.git"},"versions":{"0.2.0":{"name":"shell-escape","version":"0.2.0","description":"Escape and stringify an array of arguments to be executed on the shell","author":"","main":"./shell-escape.js","scripts":{"test":"for f in test/*; do echo \"$f\"; node \"$f\" || exit 1; echo; done; echo Passed; exit 0"},"repository":{"type":"git","url":"git://github.com/xxorax/node-shell-escape.git"},"license":"MIT","dependencies":{},"keywords":["shell","escape","bash","escapeshellarg"],"gitHead":"8e9c7f8804ba0cf6d878a64b92ed350a4746f768","bugs":{"url":"https://github.com/xxorax/node-shell-escape/issues"},"homepage":"https://github.com/xxorax/node-shell-escape","_id":"shell-escape@0.2.0","_shasum":"68fd025eb0490b4f567a027f0bf22480b5f84133","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.36","_npmUser":{"name":"xorax","email":"martin@xorax.info"},"maintainers":[{"name":"xorax","email":"martin@xorax.info"}],"dist":{"shasum":"68fd025eb0490b4f567a027f0bf22480b5f84133","size":1424,"noattachment":false,"key":"/shell-escape/-/shell-escape-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shell-escape/download/shell-escape-0.2.0.tgz"},"directories":{},"publish_time":1423694698290,"_cnpm_publish_time":1423694698290,"_hasShrinkwrap":false},"0.1.0":{"name":"shell-escape","version":"0.1.0","description":"Escape and stringify an array of arguments to be executed on the shell","author":{"name":"Dave Eddy","email":"dave@daveeddy.com","url":"http://www.daveeddy.com"},"main":"./shell-escape.js","scripts":{"test":"for f in test/*; do echo \"$f\"; node \"$f\" || exit 1; echo; done; echo Passed; exit 0"},"repository":{"type":"git","url":"git://github.com/bahamas10/node-shell-escape.git"},"license":"MIT","dependencies":{},"bugs":{"url":"https://github.com/bahamas10/node-shell-escape/issues"},"homepage":"https://github.com/bahamas10/node-shell-escape","_id":"shell-escape@0.1.0","dist":{"shasum":"20e996fdd5f0c51be3f3c550119b77723d98e335","size":1191,"noattachment":false,"key":"/shell-escape/-/shell-escape-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shell-escape/download/shell-escape-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"bahamas10","email":"dave@daveeddy.com"},"maintainers":[{"name":"xorax","email":"martin@xorax.info"}],"directories":{},"publish_time":1392058266629,"_hasShrinkwrap":false,"_cnpm_publish_time":1392058266629},"0.0.1":{"name":"shell-escape","version":"0.0.1","description":"Escape and stringify an array of arguments to be executed on the shell","author":{"name":"Dave Eddy","email":"dave@daveeddy.com","url":"http://www.daveeddy.com"},"main":"./shell-escape.js","scripts":{"test":"for f in test/*; do echo \"$f\"; node \"$f\" || exit 1; echo; done; echo Passed; exit 0"},"repository":{"type":"git","url":"git://github.com/bahamas10/node-shell-escape.git"},"license":"MIT","dependencies":{},"bugs":{"url":"https://github.com/bahamas10/node-shell-escape/issues"},"_id":"shell-escape@0.0.1","dist":{"shasum":"eede9fa98497f36ef3ddabb4b6d1856a2d5762a9","size":1314,"noattachment":false,"key":"/shell-escape/-/shell-escape-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/shell-escape/download/shell-escape-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.1","_npmUser":{"name":"bahamas10","email":"dave@daveeddy.com"},"maintainers":[{"name":"xorax","email":"martin@xorax.info"}],"directories":{},"publish_time":1377788144278,"_hasShrinkwrap":false,"_cnpm_publish_time":1377788144278},"0.0.0":{"name":"shell-escape","version":"0.0.0","description":"Escape and stringify an array of arguments to be executed on the shell","author":{"name":"Dave Eddy","email":"dave@daveeddy.com","url":"http://www.daveeddy.com"},"main":"./shell-escape.js","scripts":{"test":"for f in test/*; do echo \"$f\"; node \"$f\" || exit 1; echo; done; echo Passed; exit 0"},"repository":{"type":"git","url":"git://github.com/bahamas10/node-shell-escape.git"},"license":"MIT","dependencies":{},"_id":"shell-escape@0.0.0","dist":{"shasum":"c1f0b72aeb2be606a2e271f02651fe18efdcd765","size":1235,"noattachment":false,"key":"/shell-escape/-/shell-escape-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shell-escape/download/shell-escape-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"bahamas10","email":"dave@daveeddy.com"},"maintainers":[{"name":"xorax","email":"martin@xorax.info"}],"directories":{},"publish_time":1370535226926,"_hasShrinkwrap":false,"_cnpm_publish_time":1370535226926}},"readme":"shell-escape\n============\n\nEscape and stringify an array of arguments to be executed on the shell\n\nInstall\n-------\n\n    npm install shell-escape\n\nExample\n-------\n\n### simple\n\n``` js\nvar shellescape = require('shell-escape');\n\nvar args = ['curl', '-v', '-H', 'Location;', '-H', 'User-Agent: dave#10', 'http://www.daveeddy.com/?name=dave&age=24'];\n\nvar escaped = shellescape(args);\nconsole.log(escaped);\n```\n\nyields\n\n```\ncurl -v -H 'Location;' -H 'User-Agent: dave#10' 'http://www.daveeddy.com/?name=dave&age=24'\n```\n\nA command suitable for being executed by the shell\n\n### advanced\n\n``` js\nvar shellescape = require('shell-escape');\n\nvar args = ['echo', 'hello!', 'how are you doing $USER', '\"double\"', \"'single'\"];\n\nvar escaped = shellescape(args);\nconsole.log(escaped);\n```\n\nyields\n\n```\necho 'hello!' 'how are you doing $USER' '\"double\"' \\''single'\\'\n```\n\nand when run on the shell\n\n```\n$ echo 'hello!' 'how are you doing $USER' '\"double\"' \\''single'\\'\nhello! how are you doing $USER \"double\" 'single'\n```\n\nLicense\n-------\n\nMIT\n","_attachments":{},"homepage":"https://github.com/xxorax/node-shell-escape","bugs":{"url":"https://github.com/xxorax/node-shell-escape/issues"},"license":"MIT"}