cross-spawn-promise
Advanced tools
Comparing version 0.9.2 to 0.10.0
{ | ||
"name": "cross-spawn-promise", | ||
"version": "0.9.2", | ||
"version": "0.10.0", | ||
"description": "Promisified cross-spawn.", | ||
@@ -27,7 +27,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"cross-spawn": "^5.0.1" | ||
"cross-spawn": "^5.1.0" | ||
}, | ||
"devDependencies": { | ||
"babel-preset-env": "^1.1.8", | ||
"babel-register": "^6.22.0", | ||
"babel-preset-env": "^1.2.2", | ||
"babel-register": "^6.24.0", | ||
"chai": "^3.5.0", | ||
@@ -41,6 +41,6 @@ "chai-as-promised": "^6.0.0", | ||
"gulp-istanbul": "^1.1.1", | ||
"gulp-load-plugins": "^1.4.0", | ||
"gulp-load-plugins": "^1.5.0", | ||
"gulp-mocha": "^3.0.1", | ||
"gulp-sourcemaps": "^2.4.0", | ||
"gulp-standard": "^8.0.3", | ||
"gulp-sourcemaps": "^2.5.0", | ||
"gulp-standard": "^9.0.0", | ||
"in-publish": "^2.0.0", | ||
@@ -50,5 +50,10 @@ "isparta": "^4.0.0", | ||
"run-sequence": "^1.2.2", | ||
"standard": "^8.6.0", | ||
"yargs": "^6.6.0" | ||
"standard": "^9.0.2", | ||
"yargs": "^7.0.2" | ||
}, | ||
"greenkeeper": { | ||
"ignore": [ | ||
"gulp-mocha" | ||
] | ||
} | ||
} |
@@ -27,2 +27,31 @@ # cross-spawn-promise | ||
## API | ||
```js | ||
async spawn(command[, args][, options]) | ||
``` | ||
The returned `Promise` will resolve to the process's standard output. Depending | ||
on the value of the `encoding` option (see below), it will either be a | ||
[`Buffer`](https://nodejs.org/api/buffer.html) or a string. | ||
The promise also exposes the created child process via its `childProcess` | ||
property. | ||
Upon rejection, the following properties provide additional information on the | ||
`Error` object: | ||
- `exitSignal` | ||
- `exitStatus` | ||
- `stdout` | ||
- `stderr` | ||
## Options | ||
All options are passed on to | ||
[cross-spawn](https://www.npmjs.com/package/cross-spawn), with the exception of | ||
the additional `encoding` option. If you pass a string (e.g., `'utf8'`), it will | ||
be used as the | ||
[default character encoding](https://nodejs.org/api/stream.html#stream_readable_setencoding_encoding). | ||
## Maintainer | ||
@@ -29,0 +58,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13562
63
Updatedcross-spawn@^5.1.0