README
shell-escape
Escape and stringify an array of arguments to be executed on the shell
Install
npm install shell-escape
Example
simple
var shellescape = require('shell-escape');
var args = ['curl', '-v', '-H', 'Location;', '-H', 'User-Agent: dave#10', 'http://www.daveeddy.com/?name=dave&age=24'];
var escaped = shellescape(args);
console.log(escaped);
yields
curl -v -H