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 0.4.0 to 0.4.1

7

index.js

@@ -250,5 +250,5 @@ var child_process = require('child_process'),

function iterate() {
return exec(cmds[complete], opts, function(err, out, code) {
errBuf += err;
outBuf += out;
return exec(cmds[complete], opts, function(err, stdout, stderr, code) {
errBuf += stderr;
outBuf += stdout;

@@ -260,2 +260,3 @@ if (opts.safe && code !== 0) {

complete++;
if (complete === cmds.length) {

@@ -262,0 +263,0 @@ callback(errBuf, outBuf, code);

{
"name": "executive",
"version": "0.4.0",
"version": "0.4.1",
"description": "exec for the lazy",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,3 +10,3 @@ # executive

exec('ls', function(err, out, code) {
exec('ls', function(err, stdout, stderr) {
// Done, no need to echo out as it's piped to stdout by default.

@@ -20,3 +20,3 @@ });

exec('ls -AGF Foo\\ bar', function(err, out, code) {
exec('ls -AGF Foo\\ bar', function(err, stdout, stderr) {
// Note the escaped folder name.

@@ -30,3 +30,3 @@ });

exec(['ls', 'ls', 'ls'], function(err, out, code) {
exec(['ls', 'ls', 'ls'], function(err, stdout, stderr) {
// All three ls commands are called in order.

@@ -38,3 +38,3 @@ });

```javascript
exec(['ls', 'aaaaa', 'ls'], function(err, out, code) {
exec(['ls', 'aaaaa', 'ls'], function(err, stdout, stderr) {
// First command succeeds, second blows up, third is never called.

@@ -83,3 +83,3 @@ });

```javascript
exec.interactive('vim', function(err, out, code) {
exec.interactive('vim', function(err) {
// Edit your commit message or whatnot

@@ -94,3 +94,3 @@ });

```javascript
exec.quiet(['ls', 'ls'], function(err, out, code) {
exec.quiet(['ls', 'ls'], function(err, stdout, stderr) {
// Not a peep is heard, and both ls commands will be executed.

@@ -107,3 +107,3 @@ });

```javascript
exec(['ls', 'aaaaaa', 'ls'], {safe: false}, function(err, out, code) {
exec(['ls', 'aaaaaa', 'ls'], {safe: false}, function(err, stdout, stderr) {
// Both commands execute despite aaaaaa not being a valid executable.

@@ -110,0 +110,0 @@ });

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