Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "executive", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Elegant command execution.", | ||
@@ -5,0 +5,0 @@ "main": "lib/", |
@@ -8,3 +8,3 @@ # executive [![Build Status](https://travis-ci.org/zeekay/executive.svg?branch=master)](https://travis-ci.org/zeekay/executive) [![npm version](https://badge.fury.io/js/executive.svg)](https://badge.fury.io/js/executive) | ||
## Features | ||
- Node.js callback, Promises and synchronous APIs. | ||
- Node.js callback, promise and synchronous APIs. | ||
- Serial execution by default, parallel optional. | ||
@@ -36,10 +36,11 @@ - Automatically pipes `stderr` and `stdout` by default. | ||
Callbacks and promises supported. | ||
Callbacks and promises are both supported. | ||
```javascript | ||
exec.quiet('ls -l', function(err, stdout, stderr) { | ||
exec('ls -l', function(err, stdout, stderr) { | ||
var files = stdout.split('\n'); | ||
}) | ||
{stdout} = yield exec.quiet('ls -l') | ||
var files = stdout.split('\n'); | ||
exec('ls -l').then(function(res) { | ||
var files = res.stdout.split('\n'); | ||
}) | ||
``` | ||
@@ -57,3 +58,3 @@ | ||
ls | ||
ls`) // Same; | ||
ls`) // Same | ||
``` | ||
@@ -63,3 +64,3 @@ | ||
```javascript | ||
{stdout} = yield exec.parallel(['ls', 'ls', 'ls']) | ||
exec.parallel(['ls', 'ls', 'ls']) | ||
``` | ||
@@ -92,3 +93,3 @@ | ||
exec.interactive('vim', function(err) { | ||
// Edit your commit message and whatnot | ||
// Edit your commit message | ||
}); | ||
@@ -120,9 +121,9 @@ ``` | ||
## Extra credit | ||
## Extra | ||
Great with `cake`, `grunt`, `gulp` and other task runners. Even better mixed | ||
with generator-based control flow libraries or `async`/`await`. | ||
with generator-based control flow libraries and/or ES7 `async`/`await`. | ||
Complex example using [`shortcake`](http://github.com/zeekay/shortcake) (which | ||
provides a superset of [cake](http://coffeescript.org)'s features, including | ||
generator/promise task support): | ||
provides a superset of [Cake](http://coffeescript.org)'s features, including | ||
generator/promise support): | ||
@@ -150,1 +151,3 @@ ```coffeescript | ||
``` | ||
You can find more usage examples in the [tests](test/test.coffee). |
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
14879
147