npm.io
0.1.1 • Published 7 years ago

cordova-plugin-systemcommand

Licence
ISC
Version
0.1.1
Deps
0
Size
5 kB
Vulns
0
Weekly
0

System Commands Plugin for Apache Cordova

Cordova Plugin for calling system commands.

Install

Locally

cordova plugin add https://github.com/kelvionald/cordova-plugin-systemcommand.git

Usage

exec
systemcommand.exec(command, successCallback, errorCallback);
  • => successCallback is called in case successful call
  • => errorCallback is called if something went wrong
Example
systemcommand.exec('whoami', x => console.log(x), x => console.log(x));

Platform Support

Android only.

Keywords