Proxy that adds a payload to html pages
NB: Heavily inspired by jellyproxy.js in the Jellyfish project - hopefully can oneday be used in that project.
Jelly Proxy is a proxy server that allows you to inject a payload onto html pages, allowing you to insert test monitoring code etc.
npm install jelly-proxy
var jp = require'jelly-proxy'jpopts cb PORT;var opts =tag : "</head>" // Default: </body>payload : fsreadFileSync"payload.js" "utf8"var// This function is called for urls prefixed with _jelly