npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

frida-device-watcher

1.0.1

@juliangruber

npmHomeRepoSnykSocket
Downloads:2
$ npm install frida-device-watcher
DailyWeeklyMonthlyYearly

frida-device-watcher

Get notified when a device connects or disconnects.

Example

var Watcher = require('frida-device-watcher');
var frida = require('frida');

var w = new Watcher(frida);

w.on('connect', function(device){
  console.log('connected');
  console.log(device);
});

w.on('disconnect', function(){
  console.log('disconnected');
});

Installation

$ npm install frida-device-watcher

API

new Watcher(frida[, opts])

Options:

  • delay: Delay in miliseconds to wait before checking again. Defaults to 1000.

License

MIT