{"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":"http://registry-npm.ywwl.com/shell-escape/download/shell-escape-0.2.0.tgz","integrity":"sha512-uRRBT2MfEOyxuECseCZd28jC1AJ8hmqqneWQ4VWUTgCAFvb3wKU1jLqj6egC4Exrr88ogg3dp+zroH4wJuaXzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjy6tsArQGZr1Q8xraFFl4xd/gziGMT4+nsuzq/jChHAiEA/8+LVU1447qK355fLXsqPupDRRRBnUOtDiQRmEfw1ac="}],"size":1424,"noattachment":false,"key":"/shell-escape/-/shell-escape-0.2.0.tgz"},"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":1423694698290,"_cnpm_publish_time":1423694698290,"dist-tags":{"latest":"0.2.0"}}