node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

android-device-monitor

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