{"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":"http://registry-npm.ywwl.com/shell-escape/download/shell-escape-0.1.0.tgz","integrity":"sha512-NwnCO2CAmGvErFGQdEo8ClOlVo6weOxK1bk9/r4fSPAlnvwHKRdCfnVGEOzhlk5S7BZHN+szbzXt/BfP3u3wCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF39h3AMGEz4xi/owv4wUXBcd4st2Gr3YLMym+K1JiG9AiAsSXIlT+KjkR3BPCkl0kB7XzbDWtqE9JMgFEx/c2YEeQ=="}],"size":1191,"noattachment":false,"key":"/shell-escape/-/shell-escape-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"bahamas10","email":"dave@daveeddy.com"},"maintainers":[{"name":"bahamas10","email":"dave@daveeddy.com"}],"directories":{},"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","publish_time":1392058266629,"_cnpm_publish_time":1392058266629,"dist-tags":{"latest":"0.2.0"}}