npm.io
1.0.0 • Published 9 years ago

node-cmd-promise

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

node-cmd-promise

NodeJS interface to allow you to run bash commands asynchronously with Promises.

Use

const cmd = require('node-cmd-promise');

cmd('ls -a')
  .then((stdout, stderr) => {
    console.log("stdout", stdout);
    console.log("stderr", stderr);
  })
  .catch((error) => console.log("error", error))

Keywords