Nevertheless! Party Metaphorically
    Have ideas to improve npm?Join in the discussion! »

    node-cmd-promise

    1.0.0 • Public • Published

    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))

    Install

    npm i node-cmd-promise

    DownloadsWeekly Downloads

    8

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar