{"name":"command-join","version":"1.0.1","description":"Escape and join command-line arguments, cross-platform.","main":"command-join.js","scripts":{"test":"mocha test/*.test.js"},"repository":{"type":"git","url":"git+https://github.com/seangenabe/command-join.git"},"keywords":["shell","command","escape","join","cli","argv"],"author":{"name":"Sean Genabe","email":"seangenabe@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/seangenabe/command-join/issues"},"homepage":"https://github.com/seangenabe/command-join#readme","devDependencies":{"chai":"^3.4.1","mocha":"^2.3.4"},"engines":{"node":">=4.0.0"},"gitHead":"3140ff8f8cee6590883002ff059f79eb5c852580","_id":"command-join@1.0.1","_shasum":"cf8af2f24e31d23144b3d00d5776578778d20c1e","_from":".","_npmVersion":"2.13.4","_nodeVersion":"5.1.1","_npmUser":{"name":"s4g6","email":"seangenabe@outlook.com"},"maintainers":[{"name":"s4g6","email":"seangenabe@outlook.com"}],"dist":{"shasum":"cf8af2f24e31d23144b3d00d5776578778d20c1e","tarball":"http://registry-npm.ywwl.com/command-join/download/command-join-1.0.1.tgz","integrity":"sha512-eWaD8EmtLbUNn3ro2XYmfGwAjzZUPW1vcAw2ODFOZWqznOfhmts/XQDaFBGDqSOOyqdPW2PCpo/kK9ax+uBklw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEjZ50ClhvCutoLxmUHC0U2ENyiJYhUd/mmhoH9l/LBgAiEAhYgV48NsrHl7ETcjpuoYeoA0skvadcK5jcB+qEXbTTI="}],"size":3423,"noattachment":false,"key":"/command-join/-/command-join-1.0.1.tgz"},"directories":{},"readme":"# command-join\r\n\r\nEscape command-line arguments, cross-platform.\r\n\r\n[![npm](https://img.shields.io/npm/v/command-join.svg?style=flat-square)](https://www.npmjs.com/package/command-join)\r\n[![Build Status](https://img.shields.io/travis/seangenabe/command-join/master.svg?style=flat-square)](https://travis-ci.org/seangenabe/command-join)\r\n[![devDependency Status](https://img.shields.io/david/dev/seangenabe/command-join.svg?style=flat-square)](https://david-dm.org/seangenabe/command-join#info=devDependencies)\r\n[![node](https://img.shields.io/node/v/command-join.svg?style=flat-square)](https://nodejs.org/en/download/)\r\n\r\nIf you like this package, be sure to star its repo, and please consider [donating](https://seangenabe.netlify.com/donate).\r\n\r\n## Usage\r\n\r\n```typescript\r\nimport { commandJoin } from \"command-join\"\r\n```\r\n\r\n### `commandJoin(arg: string | string[]): string`\r\n\r\nEscapes each command-line argument and joins them into a string that can then be executed, e.g. via `child_process.exec`.\r\n\r\nIf a string is passed, an array containing the string will instead be processed.\r\n\r\n**Example**\r\n\r\n```javascript\r\nconst command = commandJoin(['a', \"b\\\\\", \"'c\"])\r\ncommand\r\n// output on Windows: a \"b\\\\\" 'c\r\n// output on Linux: a 'b\\' \\'c\r\n```\r\n\r\nSee the tests for more convoluted examples.\r\n\r\n## Migrating\r\n\r\n**Migrating to v3**:\r\n```diff\r\n- const commandJoin = require(\"command-join\")\r\n+ const { commandJoin } = require(\"command-join\")\r\n```\r\n","publish_time":1449406167574,"_cnpm_publish_time":1449406167574,"dist-tags":{"latest":"3.0.0"}}