node-seq-exec

1.0.3 • Public • Published

node-seq-exec

A small package which assists with executing shell commands in sequence in node.js

installation

$ npm install node-seq-exec

usage

with callback

const seriesExec = require('node-seq-exec');

seriesExec([
  'command 1',
  'command 2',
], (error) => {
  if (error) {
    console.error(error);
  }
});

with promise

const seriesExec = require('node-seq-exec');

seriesExec([
  'command 1',
  'command 2',
]).catch(console.error);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i node-seq-exec

      Weekly Downloads

      0

      Version

      1.0.3

      License

      ISC

      Last publish

      Collaborators

      • dead_salt