{"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":"http://registry-npm.ywwl.com/shell-escape/download/shell-escape-0.0.0.tgz","integrity":"sha512-p1iOfkB06ovqjvcYZKBSf0Dzx/zj60Uxu+dQcmd5EnHNomes2R9ucaNLVfx1SX0Xlr5Po7MoYT6oejtskd8wNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLGGd3q2jcVTL9iKi1U3saGDbJ6nhCZi8oKpQ06d712AiEA8ypPe/2UGMhO2sI7FItiu0QWl7lTJuAUWmQNUYVG1Po="}],"size":1235,"noattachment":false,"key":"/shell-escape/-/shell-escape-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.18","_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":1370535226926,"_cnpm_publish_time":1370535226926,"dist-tags":{"latest":"0.2.0"}}