{"name":"cross-spawn-promise","version":"0.9.2","description":"Promisified cross-spawn.","main":"index.js","author":{"name":"Zentrick nv","url":"https://www.zentrick.com/"},"contributors":[{"name":"Tim De Pauw","email":"tim.depauw@zentrick.com"}],"engines":{"node":">=4"},"license":"MIT","files":["lib/","index.js"],"scripts":{"clean":"gulp clean","build":"gulp build","prepublish":"in-publish && npm run build || not-in-publish","test":"gulp test"},"repository":{"type":"git","url":"git+https://github.com/zentrick/cross-spawn-promise.git"},"bugs":{"url":"https://github.com/zentrick/cross-spawn-promise/issues"},"dependencies":{"cross-spawn":"^5.0.1"},"devDependencies":{"babel-preset-env":"^1.1.8","babel-register":"^6.22.0","chai":"^3.5.0","chai-as-promised":"^6.0.0","del":"^2.2.2","gulp":"^3.9.1","gulp-babel":"^6.1.2","gulp-coveralls":"^0.1.4","gulp-if":"^2.0.2","gulp-istanbul":"^1.1.1","gulp-load-plugins":"^1.4.0","gulp-mocha":"^3.0.1","gulp-sourcemaps":"^2.4.0","gulp-standard":"^8.0.3","in-publish":"^2.0.0","isparta":"^4.0.0","mocha-junit-reporter":"^1.13.0","run-sequence":"^1.2.2","standard":"^8.6.0","yargs":"^6.6.0"},"gitHead":"740f8a096a914066a85e79fdaa47b6b2d3910f14","homepage":"https://github.com/zentrick/cross-spawn-promise#readme","_id":"cross-spawn-promise@0.9.2","_shasum":"92ef7cfbf39ae06e89bb3be73af6eb2d8f47f4c1","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"timdp","email":"hi@tmdpw.eu"},"dist":{"shasum":"92ef7cfbf39ae06e89bb3be73af6eb2d8f47f4c1","tarball":"http://registry-npm.ywwl.com/cross-spawn-promise/download/cross-spawn-promise-0.9.2.tgz","integrity":"sha512-p+xQNg13EXMniskR1ir6p/NIZvteZyqZm+vUNB7AQKP2AsY/sXxhFugiluWq3ARK1pvpgmxdGfn5rB9kf/EpLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE2p7vTNgJ2NqYHcAdcbcgbtFaJToVs6PRz40Ycnd9uiAiEAhKOcyv5iDgAlyNzwmnEwocdcbUJuR28mlUNSmCF2Ahc="}],"size":5577,"noattachment":false,"key":"/cross-spawn-promise/-/cross-spawn-promise-0.9.2.tgz"},"maintainers":[{"name":"delbeke","email":"pieter.delbeke@zentrick.com"},{"name":"timdp","email":"hi@tmdpw.eu"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/cross-spawn-promise-0.9.2.tgz_1486041707770_0.9175742331426591"},"directories":{},"readme":"# cross-spawn-promise\n\r\n[![npm](https://img.shields.io/npm/v/cross-spawn-promise.svg)](https://www.npmjs.com/package/cross-spawn-promise) [![Dependencies](https://img.shields.io/david/zentrick/cross-spawn-promise.svg)](https://david-dm.org/zentrick/cross-spawn-promise) [![Linux Build Status](https://img.shields.io/circleci/project/github/zentrick/cross-spawn-promise/master.svg?label=linux+build)](https://circleci.com/gh/zentrick/cross-spawn-promise) [![Windows Build Status](https://img.shields.io/appveyor/ci/zentrick/cross-spawn-promise/master.svg?label=windows+build)](https://ci.appveyor.com/project/zentrick/cross-spawn-promise) [![Coverage Status](https://img.shields.io/coveralls/zentrick/cross-spawn-promise/master.svg)](https://coveralls.io/r/zentrick/cross-spawn-promise) [![JavaScript Standard Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\r\n\r\nPromisified [cross-spawn](https://www.npmjs.com/package/cross-spawn).\r\n\n## Usage\n\n```js\nimport spawn from 'cross-spawn-promise'\n\nconst command = 'ls'\nconst args = ['-al', '/etc']\nconst options = {}\nspawn(command, args, options)\n  .then((stdout) => {\n    console.info('Success!')\n    console.info('stdout:', stdout.toString())\n  })\n  .catch((error) => {\n    console.error('Failed!')\n    console.error('exit status:', error.exitStatus)\n    console.error('stderr:', error.stderr.toString())\n  })\n```\r\n\r\n## API\r\n\r\n```js\r\nasync spawn(command[, args][, options])\r\n```\r\n\r\nThe returned `Promise` will resolve to the process's standard output. Depending\r\non the value of the `encoding` option (see below), it will either be a\r\n[`Buffer`](https://nodejs.org/api/buffer.html) or a string.\r\n\r\nThe promise also exposes the created child process via its `childProcess`\r\nproperty.\r\n\r\nUpon rejection, the following properties provide additional information on the\r\n`Error` object:\r\n\r\n- `exitSignal`\r\n- `exitStatus`\r\n- `stdout`\r\n- `stderr`\r\n\r\n## Options\r\n\r\nAll options are passed on to\r\n[cross-spawn](https://www.npmjs.com/package/cross-spawn), with the exception of\r\nthe additional `encoding` option. If you pass a string (e.g., `'utf8'`), it will\r\nbe used as the\r\n[default character encoding](https://nodejs.org/api/stream.html#stream_readable_setencoding_encoding).\r\n\r\n## Maintainer\n\n[Tim De Pauw](https://github.com/timdp)\n\n## License\n\nMIT\n","publish_time":1486041708394,"_cnpm_publish_time":1486041708394,"dist-tags":{"latest":"0.10.2"}}