$ git clone git://github.com/oleavr/frida-tool-example.git
$ cd frida-tool-example/
$ npm install
$ node dist/bin/frida-tool-example.js -U -f com.example.android
To continuously recompile on change, keep this running in a terminal:
$ npm run app:watch
Plus another terminal with:
$ npm run agent:watch
And use an editor like Visual Studio Code for code completion and instant type-checking feedback.