node-seq-exec
v1.0.3
Published
Execute shell commands in sequence in node
Downloads
6
Maintainers
Readme
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);