{"_id":"command-join","_rev":"284847","name":"command-join","description":"Escape and join command-line arguments, cross-platform.","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"seangenabe","email":"seangenabe@outlook.com"}],"time":{"modified":"2021-06-03T18:32:07.000Z","created":"2015-12-05T19:17:13.432Z","3.0.0":"2019-05-23T08:15:00.489Z","2.0.1":"2019-05-23T06:58:33.027Z","2.0.0":"2017-02-08T07:24:10.814Z","1.1.1":"2016-09-28T00:24:19.437Z","1.1.0":"2016-09-28T00:21:43.461Z","1.0.1":"2015-12-06T12:49:27.574Z","1.0.0":"2015-12-06T06:16:49.708Z","1.0.0-2":"2015-12-05T19:17:13.432Z"},"users":{"s4g6":true,"wmhilton":true,"retorillo":true},"author":{"name":"Sean Genabe","email":"seangenabe@outlook.com"},"repository":{"type":"git","url":"git+https://github.com/seangenabe/command-join.git"},"versions":{"3.0.0":{"name":"command-join","version":"3.0.0","description":"Escape and join command-line arguments, cross-platform.","keywords":["argv","cli","command","escape","join","shell"],"homepage":"https://github.com/seangenabe/command-join#readme","bugs":{"url":"https://github.com/seangenabe/command-join/issues"},"repository":{"type":"git","url":"git+https://github.com/seangenabe/command-join.git"},"license":"MIT","author":{"name":"Sean Genabe","email":"seangenabe@outlook.com"},"main":"command-join.js","scripts":{"build":"tsc","postinstall":"npx -p @seangenabe/tnx tnx || exit 0","prepublishOnly":"npm test","pretest":"npm run build","test":"node test/index.test.js","watch":"tsc -w"},"dependencies":{"@improved/node":"^1.0.0"},"devDependencies":{"@types/node":"^12.0.2","t0":"^1.0.0","typescript":"^3.4.5"},"engines":{"node":">=4.0.0"},"gitHead":"116bf47fecd5161d07b22703b3f65183d1080729","_id":"command-join@3.0.0","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"9325753e99e53ca7d2c0e3cec7f557e5bfeba78b","size":3861,"noattachment":false,"key":"/command-join/-/command-join-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-join/download/command-join-3.0.0.tgz"},"maintainers":[{"name":"seangenabe","email":"seangenabe@outlook.com"}],"_npmUser":{"name":"seangenabe","email":"seanmarviolivergenabe@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-join_3.0.0_1558599300365_0.7559594539075141"},"_hasShrinkwrap":false,"publish_time":1558599300489,"_cnpm_publish_time":1558599300489},"2.0.1":{"name":"command-join","version":"2.0.1","description":"Escape and join command-line arguments, cross-platform.","keywords":["argv","cli","command","escape","join","shell"],"homepage":"https://github.com/seangenabe/command-join#readme","bugs":{"url":"https://github.com/seangenabe/command-join/issues"},"repository":{"type":"git","url":"git+https://github.com/seangenabe/command-join.git"},"license":"MIT","author":{"name":"Sean Genabe","email":"seangenabe@outlook.com"},"main":"command-join.js","scripts":{"build":"tsc","postinstall":"npx -p @seangenabe/tnx tnx || exit 0","prepublishOnly":"npm test","pretest":"npm run build","test":"node test/index.test.js","watch":"tsc -w"},"dependencies":{"@improved/node":"^1.0.0"},"devDependencies":{"@types/node":"^12.0.2","t0":"^1.0.0","typescript":"^3.4.5"},"engines":{"node":">=4.0.0"},"gitHead":"96a2590330b8ba5ad84daf932495d408bf34bbf6","_id":"command-join@2.0.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"0a9e58a84e94bd0d1b6c75ce1078723d8a7645cb","size":3709,"noattachment":false,"key":"/command-join/-/command-join-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-join/download/command-join-2.0.1.tgz"},"maintainers":[{"name":"seangenabe","email":"seangenabe@outlook.com"}],"_npmUser":{"name":"seangenabe","email":"seanmarviolivergenabe@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-join_2.0.1_1558594712892_0.4727816656910724"},"_hasShrinkwrap":false,"publish_time":1558594713027,"_cnpm_publish_time":1558594713027},"2.0.0":{"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","size":3421,"noattachment":false,"key":"/command-join/-/command-join-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-join/download/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":{},"publish_time":1486538650814,"_cnpm_publish_time":1486538650814,"_hasShrinkwrap":false},"1.1.1":{"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","size":2791,"noattachment":false,"key":"/command-join/-/command-join-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-join/download/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":{},"publish_time":1475022259437,"_cnpm_publish_time":1475022259437,"_hasShrinkwrap":false},"1.1.0":{"name":"command-join","version":"1.1.0","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"},"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":"2114f9adc33002322d70880fd958bc7b1e6891c8","_id":"command-join@1.1.0","_shasum":"8de7ce708db25bc7b9c0e2c9ebb50aa3610dde88","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"seangenabe","email":"seangenabe@outlook.com"},"dist":{"shasum":"8de7ce708db25bc7b9c0e2c9ebb50aa3610dde88","size":1857,"noattachment":false,"key":"/command-join/-/command-join-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-join/download/command-join-1.1.0.tgz"},"maintainers":[{"name":"seangenabe","email":"seangenabe@outlook.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/command-join-1.1.0.tgz_1475022101826_0.9217496640048921"},"directories":{},"publish_time":1475022103461,"_cnpm_publish_time":1475022103461,"_hasShrinkwrap":false},"1.0.1":{"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":"seangenabe","email":"seangenabe@outlook.com"}],"dist":{"shasum":"cf8af2f24e31d23144b3d00d5776578778d20c1e","size":3423,"noattachment":false,"key":"/command-join/-/command-join-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-join/download/command-join-1.0.1.tgz"},"directories":{},"publish_time":1449406167574,"_cnpm_publish_time":1449406167574,"_hasShrinkwrap":false},"1.0.0":{"name":"command-join","version":"1.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":"^2.3.4"},"engines":{"node":">=4.0.0"},"gitHead":"511ee9e38667497f9763fcbce4b75a934eb54287","_id":"command-join@1.0.0","_shasum":"fd6443380e0095690875f7f48e1decad03973ab9","_from":".","_npmVersion":"2.13.4","_nodeVersion":"5.1.1","_npmUser":{"name":"s4g6","email":"seangenabe@outlook.com"},"maintainers":[{"name":"seangenabe","email":"seangenabe@outlook.com"}],"dist":{"shasum":"fd6443380e0095690875f7f48e1decad03973ab9","size":3374,"noattachment":false,"key":"/command-join/-/command-join-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-join/download/command-join-1.0.0.tgz"},"directories":{},"publish_time":1449382609708,"_cnpm_publish_time":1449382609708,"_hasShrinkwrap":false},"1.0.0-2":{"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":"seangenabe","email":"seangenabe@outlook.com"}],"dist":{"shasum":"f047c6b7354aef84db41783c82586794962ad5ac","size":2066,"noattachment":false,"key":"/command-join/-/command-join-1.0.0-2.tgz","tarball":"http://registry.cnpm.dingdandao.com/command-join/download/command-join-1.0.0-2.tgz"},"directories":{},"publish_time":1449343033432,"_cnpm_publish_time":1449343033432,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/seangenabe/command-join#readme","bugs":{"url":"https://github.com/seangenabe/command-join/issues"},"license":"MIT"}