Cordova Plugin for calling system commands.
cordova plugin add https://github.com/kelvionald/cordova-plugin-systemcommand.git
systemcommand.exec(command, successCallback, errorCallback);
- =>
successCallback
is called in case successful call - =>
errorCallback
is called if something went wrong
systemcommand.exec('whoami', x => console.log(x), x => console.log(x));
Android only.