You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
369 B
11 lines
369 B
2 years ago
|
var shellescape = require('../');
|
||
|
|
||
|
var assert = require('assert');
|
||
|
|
||
|
var args = ['curl', '-v', '-H', 'Location;', '-H', 'User-Agent: dave#10', 'http://www.daveeddy.com/?name=dave&age=24'];
|
||
|
|
||
|
var escaped = shellescape(args);
|
||
|
|
||
|
assert.strictEqual(escaped, "curl -v -H 'Location;' -H 'User-Agent: dave#10' 'http://www.daveeddy.com/?name=dave&age=24'");
|
||
|
console.log(escaped);
|