$ git clone git:https://github.com/oleavr/frida-agent-example.git
$ cd agent/
$ npm install
$ frida -U -f com.example.android --no-pause -l _agent.js
To continuously recompile on change, keep this running in a terminal:
$ npm run watch
And use an editor like Visual Studio Code for code completion and instant type-checking feedback.