{"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","tarball":"http://registry-npm.ywwl.com/command-join/download/command-join-1.1.0.tgz","integrity":"sha512-0FKNwx5L8610JkqF70qdw8z06ZiWMYuGjM/jYaBy+3O/7agq9irTrfYmIUmsP8DEVh+feMOC+RgYENn9gWEUwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwoRUJJnWZ+UaByHssQXNLfIR8DFo3xLEZGm44JuCljAIgEWFdtuDRcmVjUwLkwKNWZr6ms3T4orprVl1ETMYy/fs="}],"size":1857,"noattachment":false,"key":"/command-join/-/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":{},"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":1475022103461,"_cnpm_publish_time":1475022103461,"dist-tags":{"latest":"3.0.0"}}