android-device-monitor
v0.0.3
Published
A node module to check on android usb device changes(connection, disconnection)
Downloads
7
Maintainers
Readme
android-device-monitor
Monitoring Android USB Devices in Node
#Install
npm install -g android-device-monitor
#Usage
$ android-device-monitor
API
import monitor from 'android-device-monitor'
monitor({
"onConnection": (device) => {
// do something when a device is connected
},
"onDisconnection": (device) => {
// do something when a device is disconnected
// send an alert to wake up somebody
}
})
#Requirements
- ADB
- libs required by node-usb-detection module