JS-Proxy
A multithreaded man-in-the-middle proxy which captures JavaScript on the fly and lets you modify it using a callback.
Installation
npm install js-proxy
The callback function is called for each node returned by falafel
var proxy = ;var options = {};optionsport = 9003;optionsthreads = 3;options{// add in your preprocessing logic herereturn input;};options{// add in your postprocessing logic herereturn input;};options {ifnodetype == "Program"node;}proxystartoptions;