frida-device-watcher

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i frida-device-watcher

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • juliangruber