Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

executive

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

executive - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

package.json
{
"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).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc