{"name":"command-join","version":"2.0.0","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":"^3.1.0"},"engines":{"node":">=4.0.0"},"gitHead":"08dda983200eb0291671a96cb9c1bbd30adebc07","_id":"command-join@2.0.0","_shasum":"52e8b984f4872d952ff1bdc8b98397d27c7144cf","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.5.0","_npmUser":{"name":"seangenabe","email":"seangenabe@outlook.com"},"dist":{"shasum":"52e8b984f4872d952ff1bdc8b98397d27c7144cf","tarball":"http://registry-npm.ywwl.com/command-join/download/command-join-2.0.0.tgz","integrity":"sha512-3wRmSkL303bNoiJeNbGfyAi3dx8ZohEce158hUCoxtay8F7bYthV/5paxpIc3PqVp35VFwqp75GpkVi+XINfKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRxmZgGdocXQHJhwjZtfv+4JmqSTQJd5lgZUiSkr+PDAiAR0U3fdC9GPGA6wtH42w0m6Dv/bccpFjl3HFTo2WNw/w=="}],"size":3421,"noattachment":false,"key":"/command-join/-/command-join-2.0.0.tgz"},"maintainers":[{"name":"seangenabe","email":"seangenabe@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/command-join-2.0.0.tgz_1486538650586_0.3587605997454375"},"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":1486538650814,"_cnpm_publish_time":1486538650814,"dist-tags":{"latest":"3.0.0"}}