{"name":"command-join","version":"1.0.0-2","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"},"gitHead":"341c36d93227ed6e860003fba6844646647e96c5","_id":"command-join@1.0.0-2","_shasum":"f047c6b7354aef84db41783c82586794962ad5ac","_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":"f047c6b7354aef84db41783c82586794962ad5ac","tarball":"http://registry-npm.ywwl.com/command-join/download/command-join-1.0.0-2.tgz","integrity":"sha512-j1m+GEE4h/M1EYxTvVYUS6v9zwSprUi63c+Fgr78xPPW+q4GqmwHizgZfPQyK1ICXThC5aa610ibCjq9ZAe0Og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD8VH25uKHWJBqNYH4UR/s6CG+Yu8Gm9PQ0oYGg2y7ugIhAN7GVq4NLSxzHkUhAaurVQci5lnqQhX0vIBKlG95IrGa"}],"size":2066,"noattachment":false,"key":"/command-join/-/command-join-1.0.0-2.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":1449343033432,"_cnpm_publish_time":1449343033432,"dist-tags":{"latest":"3.0.0"}}