{"_id":"shell-escape","_rev":"19-8bdb9081c1746025f476d72523257b4e","name":"shell-escape","description":"Escape and stringify an array of arguments to be executed on the shell","dist-tags":{"latest":"0.2.0"},"versions":{"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","tarball":"https://registry.npmjs.org/shell-escape/-/shell-escape-0.0.0.tgz","integrity":"sha512-p1iOfkB06ovqjvcYZKBSf0Dzx/zj60Uxu+dQcmd5EnHNomes2R9ucaNLVfx1SX0Xlr5Po7MoYT6oejtskd8wNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLGGd3q2jcVTL9iKi1U3saGDbJ6nhCZi8oKpQ06d712AiEA8ypPe/2UGMhO2sI7FItiu0QWl7lTJuAUWmQNUYVG1Po="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"bahamas10","email":"dave@daveeddy.com"},"maintainers":[{"name":"bahamas10","email":"dave@daveeddy.com"}]},"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","tarball":"https://registry.npmjs.org/shell-escape/-/shell-escape-0.0.1.tgz","integrity":"sha512-rvie1bhv8Zh0H7s0XF+t2SoeOZglZnAl9Ld4q8NdsV+YJn7q35WfeY5+b1ivPNE3ucR77q3vwkqXhtfkKN5o+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhaNA0ZaOUqs1qOdPB1buxA02E61Fsz/uocjaj+LJqzAiEA0sY7QMf2VRKPQKRmFx15NoN96HVocujQU5NEc+pAqaY="}]},"_from":".","_npmVersion":"1.3.1","_npmUser":{"name":"bahamas10","email":"dave@daveeddy.com"},"maintainers":[{"name":"bahamas10","email":"dave@daveeddy.com"}]},"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","tarball":"https://registry.npmjs.org/shell-escape/-/shell-escape-0.1.0.tgz","integrity":"sha512-NwnCO2CAmGvErFGQdEo8ClOlVo6weOxK1bk9/r4fSPAlnvwHKRdCfnVGEOzhlk5S7BZHN+szbzXt/BfP3u3wCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF39h3AMGEz4xi/owv4wUXBcd4st2Gr3YLMym+K1JiG9AiAsSXIlT+KjkR3BPCkl0kB7XzbDWtqE9JMgFEx/c2YEeQ=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"bahamas10","email":"dave@daveeddy.com"},"maintainers":[{"name":"bahamas10","email":"dave@daveeddy.com"}]},"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":"bahamas10","email":"dave@daveeddy.com"},{"name":"xorax","email":"martin@xorax.info"}],"dist":{"shasum":"68fd025eb0490b4f567a027f0bf22480b5f84133","tarball":"https://registry.npmjs.org/shell-escape/-/shell-escape-0.2.0.tgz","integrity":"sha512-uRRBT2MfEOyxuECseCZd28jC1AJ8hmqqneWQ4VWUTgCAFvb3wKU1jLqj6egC4Exrr88ogg3dp+zroH4wJuaXzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjy6tsArQGZr1Q8xraFFl4xd/gziGMT4+nsuzq/jChHAiEA/8+LVU1447qK355fLXsqPupDRRRBnUOtDiQRmEfw1ac="}]}}},"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","maintainers":[{"name":"bahamas10","email":"dave@daveeddy.com"},{"name":"xorax","email":"martin@xorax.info"}],"time":{"modified":"2022-06-26T18:46:54.111Z","created":"2013-06-06T16:13:45.838Z","0.0.0":"2013-06-06T16:13:46.926Z","0.0.1":"2013-08-29T14:55:44.278Z","0.1.0":"2014-02-10T18:51:06.629Z","0.2.0":"2015-02-11T22:44:58.290Z"},"repository":{"type":"git","url":"git://github.com/xxorax/node-shell-escape.git"},"readmeFilename":"README.md","homepage":"https://github.com/xxorax/node-shell-escape","bugs":{"url":"https://github.com/xxorax/node-shell-escape/issues"},"license":"MIT","keywords":["shell","escape","bash","escapeshellarg"],"users":{"tongjieme":true,"starfox64":true,"bcoe":true,"soenkekluth":true}}