{"name":"cross-spawn-promise","version":"0.10.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","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.1.0"},"devDependencies":{"babel-preset-env":"^1.2.2","babel-register":"^6.24.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.5.0","gulp-mocha":"^3.0.1","gulp-sourcemaps":"^2.5.0","gulp-standard":"^9.0.0","in-publish":"^2.0.0","isparta":"^4.0.0","mocha-junit-reporter":"^1.13.0","run-sequence":"^1.2.2","standard":"^9.0.2","yargs":"^7.0.2"},"greenkeeper":{"ignore":["gulp-mocha"]},"gitHead":"6071676c265b3afd5ae1b49e9085596c9518a565","homepage":"https://github.com/zentrick/cross-spawn-promise#readme","_id":"cross-spawn-promise@0.10.2","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-74PXJf6DYaab2klRS+D+9qxKJL1Weo3/ao9OPoH6NFzxtINSa/HE2mcyAPu1fpEmRTPD4Gdmpg3xEXQSgI8lpg==","shasum":"0e6338149caf53a6d557ac5c65efb3086d8704ac","tarball":"http://registry-npm.ywwl.com/cross-spawn-promise/download/cross-spawn-promise-0.10.2.tgz","fileCount":6,"unpackedSize":14429,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNEF0CRA9TVsSAnZWagAATM0P/1lMmlg0ynvaTgZwl3cQ\n0vOxwD5Tw5qwDFagTWjfThB/Oro2MAJ8buCtIa6SGdjEKH8WaaNPDt71rdKc\nspKFh/+q5sWwcIJxyKlZ/2pfQhGdKn4b0M8yRL85JfJgU4RA5eaBypV1wm6y\n1dag74VGtbH39TIjzIcC7lKvMb69X/UyWWvQm4rxaFY6XK+iALN+aswoUlNb\n2YP0TIYckMQdfih9nz66rbZsbl+G0+HwzpIcFGIYKeENGNKUPFVSa5WKz69m\nIdX91jXbCorJmcuTRvc3PC9JnivyxeEWRk4TLJ68JS6g4Yr6SLIFrl3kmRi9\n/2o4qZQlDzrLaKANugJn/ffONDxw2WZD9t0UO0Gq3+uDDl9bN3YDF3vpJ81k\nDWVLCD7FonHvMi6hX0vwBesxjPwyD0umIA5NdE/mQIalOc/AbsU6b+2JePcu\nzMgMFKNkA/AuEH2coq18WZE6Ol73WbRAVWKqhfLs4tHjr5xBASqIaeBEfdt0\noWTeSlLl0Yt/d8ku/TeAJC9+KyU3L2wmCyrMprEqb/p1uJ7hR84Ao4+vR68L\nH+oj8jjqwXM5ou88hMuHMibetd6E8bRuZyMkfxKO+FdC0nueUmlR3DLVVLSH\naK9RBAViDRE1vsPKo+gTlWBqWI1VxeUA2V1gTEVQW+S2d5DFE5Qox7Dr7ThR\nvY0i\r\n=wmlw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmZ5mNbZ4e58haxhDlhmGejNipuweFAQTsIn/7Mfy78wIgPixjmF3uwtdry2wnAppFIFDqJeEXt/5WiJc8moMsrCE="}],"size":6333,"noattachment":false,"key":"/cross-spawn-promise/-/cross-spawn-promise-0.10.2.tgz"},"maintainers":[{"name":"delbeke","email":"pieter.delbeke@zentrick.com"},{"name":"timdp","email":"hi@tmdpw.eu"}],"_npmUser":{"name":"timdp","email":"hi@tmdpw.eu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-spawn-promise_0.10.2_1580482931590_0.24023606110050144"},"_hasShrinkwrap":false,"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":1580482931705,"_cnpm_publish_time":1580482931705,"dist-tags":{"latest":"0.10.2"}}