command
Advanced tools
Weekly downloads
Readme
A Node.js chainable, promise-based utility for running commands with child_process.spawn
$ npm install command
var command = require('command');
command.open('/some/directory/path')
.on('stdout', command.writeTo(process.stdout))
.on('stderr', command.writeTo(process.stderr))
.chdir('..')
.exec('ls')
.then(function() {
var stdout = this.lastOutput.stdout;
if (! stdout.trim().length) {
console.warn('No files found!');
}
});
FAQs
A chainable, promise-based utility for running commands with child_process.spawn
The npm package command receives a total of 238 weekly downloads. As such, command popularity was classified as not popular.
We found that command demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.