Execute the OS specific command.
Returns a promise which:
stdout
and stderr
.Error
.$ npm install --save exude
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!');
});
Type: object
Must have the requried OS
names.
MIT © Hemanth.HM