Socket
Socket
Sign inDemoInstall

command-join

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc