Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const frida = require('frida')
class Device {
static manager = new frida.DeviceManager()
constructor(dev) {
this.dev = dev
}
/**
*
* @param {string} host
* @returns {Promise}
*/
static async connect(host) {
const dev = await Action.manager.addRemoteDevice(host)
return new Device(dev)
}
/**
* @returns {Promise}