@malept/cross-spawn-promise
Promisified version of cross-spawn
Last updated 4 years ago by malept .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install @malept/cross-spawn-promise 
SYNC missed versions from official npm registry.

@malept/cross-spawn-promise

A promisified version of cross-spawn with slightly different behavior & extra options.

CI NPM package codecov

Different Behavior

If the spawned process exits with a non-zero code, an ExitCodeError is thrown with the original command, code, stdout, and stderr as properties.

If the spawned process is terminated by a signal on non-Windows platforms, an ExitSignalError is thrown with the original command, signal name, stdout, and stderr as properties.

Extra Options

  • logger: a Function such as console.log or debug(name) to log some information about the spawned process.
  • updateErrorCallback: a callback which mutates the error before it is re-thrown. Most commonly, this is used to augment the error message of ENOENT error to provide a more human-friendly message as to how to install the missing executable.

Legal

This module is licensed under the Apache 2.0 license.

Current Tags

  • 2.0.0                                ...           latest (3 years ago)

4 Versions

  • 2.0.0                                ...           3 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)

Copyright 2013 - present © cnpmjs.org | Home |