exude
Execute the OS specific command.
Returns a promise which:
- On success data (array) will have
stdout
andstderr
. - On failure data will have
Error
. - Will reach catch on unknown OS or perm issues.
Install
$ npm install --save exude
Usage
let exude = ; const cmds = 'linux': 'ls' 'osx': 'ls' 'windows': 'dir'; ;
API
exude(cmds)
cmds
Type: object
Must have the requried OS
names.
License
MIT © Hemanth.HM