shell-quote
shell-quote
example
quote
var quote = require('shell-quote').quote;
var s = quote([ 'a', 'b c d', '$f', '"g"' ]);
console.log(s);a 'b c d' \$f '"g"'parse
var parse = require('shell-quote').parse;
var xs = parse('a "b c" \\$def \'it\\\'s great\'');
console.dir(xs);[ 'a', 'b c', '\\$def', 'it\'s great' ]parse with an environment variable
parse with custom escape charcter
parsing shell operators
parsing shell comment
methods
quote(args)
parse(cmd, env={})
install
license
Last updated