exude

1.0.1 • Public • Published

exude Build Status

Execute the OS specific command.

Returns a promise which:

  • On success data (array) will have stdout and stderr.
  • On failure data will have Error.
  • Will reach catch on unknown OS or perm issues.

Install

$ npm install --save exude

Usage

let exude = require('exude');
 
const cmds = {
    'linux': 'ls',
    'osx': 'ls',
    'windows': 'dir'
};
 
exude(cmds)
    .then(console.log,console.error)
    .catch(function(e){
        console.error('Unknown OS!');
    });

API

exude(cmds)

cmds

Type: object

Must have the requried OS names.

License

MIT © Hemanth.HM

Package Sidebar

Install

npm i exude

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • hemanth