{"name":"command-join","version":"1.1.1","description":"Escape and join command-line arguments, cross-platform.","main":"dist/command-join.js","files":["dist"],"scripts":{"build":"babel command-join.js --out-dir dist && babel test --out-dir test-es5","test":"npm run build && mocha test-es5/*.test.js","prepublish":"npm run build"},"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":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-plugin-transform-es2015-arrow-functions":"^6.8.0","babel-plugin-transform-es2015-block-scoping":"^6.15.0","babel-plugin-transform-es2015-constants":"^6.1.4","babel-plugin-transform-es2015-template-literals":"^6.8.0","chai":"^3.4.1","mocha":"^3.1.0"},"engines":{"node":">=0.10"},"dependencies":{"array-from":"^2.1.1","repeat-string":"^1.5.4"},"gitHead":"9be2018fc499551ba2886af8fbeec9d7e17ee5e3","_id":"command-join@1.1.1","_shasum":"09e7609012e1dd8b4f0a14fde41a69eff1d2111f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"seangenabe","email":"seangenabe@outlook.com"},"dist":{"shasum":"09e7609012e1dd8b4f0a14fde41a69eff1d2111f","tarball":"http://registry-npm.ywwl.com/command-join/download/command-join-1.1.1.tgz","integrity":"sha512-lwSdaq2IjDpFLDfUqPOt2nWEQ0ked++DMddS7yyS6hofLd3wctVYDtHqlHnyltAJ9Sqiun1V5cqDb6Gma7GBdQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzTUbe6eGaICQvquVyeYipb/1dyrVOnIizBgq7PkoatAIhANQ1CWt5Wr4+OVNNJhkentFifkDvDXMZDwuvGCWdGoj6"}],"size":2791,"noattachment":false,"key":"/command-join/-/command-join-1.1.1.tgz"},"maintainers":[{"name":"seangenabe","email":"seangenabe@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/command-join-1.1.1.tgz_1475022259211_0.39291201438754797"},"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":1475022259437,"_cnpm_publish_time":1475022259437,"dist-tags":{"latest":"3.0.0"}}