@zzzzbov/spawn
v0.0.1
Published
Spawn is a promisified version of [`cross-spawn`][1].
Downloads
1
Readme
Spawn
Spawn is a promisified version of cross-spawn
.
Installation
NPM:
$ npm i @zzzzbov/spawn --S
Yarn:
$ yarn add @zzzzbov/spawn
Usage
const spawn = require('@zzzzbov/spawn');
// Spawn a command
const promise = spawn('echo', ['Hello World!'])
// Use the returned promise to chain additional functionality
promise.then(() => {
console.log('done!');
});