command-join
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "command-join", | ||
"version": "1.0.0", | ||
"description": "Escape and join command-line arguments. Cross-platform.", | ||
"version": "1.0.1", | ||
"description": "Escape and join command-line arguments, cross-platform.", | ||
"main": "command-join.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -23,9 +23,15 @@ # command-join | ||
**Example** | ||
```javascript | ||
let x = commandJoin(['a', "b\\", "'c"]) | ||
x // Windows: a b\ c' *nix: a b\ '\''c | ||
let command = commandJoin(['a', "b\\", "'c"]) | ||
command | ||
// output on Windows: a "b\\" 'c | ||
// output on Linux: a 'b\' \'c | ||
``` | ||
See the tests for more convoluted examples. | ||
## License | ||
MIT |
8169
37