{"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":"http://registry-npm.ywwl.com/shell-escape/download/shell-escape-0.0.1.tgz","integrity":"sha512-rvie1bhv8Zh0H7s0XF+t2SoeOZglZnAl9Ld4q8NdsV+YJn7q35WfeY5+b1ivPNE3ucR77q3vwkqXhtfkKN5o+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhaNA0ZaOUqs1qOdPB1buxA02E61Fsz/uocjaj+LJqzAiEA0sY7QMf2VRKPQKRmFx15NoN96HVocujQU5NEc+pAqaY="}],"size":1314,"noattachment":false,"key":"/shell-escape/-/shell-escape-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.1","_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":1377788144278,"_cnpm_publish_time":1377788144278,"dist-tags":{"latest":"0.2.0"}}