'use strict' module.exports = { enable: enable, test: test, // tests for whether our agent should be enabled description: 'description here' } function enable (opts) { if (opts.thing) { // do something different here } } /// only enable if we're using Frida version 8.0.0... function test () { return Frida.version === '8.0.0' }