jelly-proxy

0.3.0 • Public • Published

Jelly Proxy

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.

API:

npm install jelly-proxy
 
var jp = require('jelly-proxy')
 
jp(opts, cb, PORT);
 
var opts = {
  tag : "</head>" // Default: </body>
, payload : fs.readFileSync("payload.js", "utf8")
}
 
var cb = function(req, res){
 // This function is called for urls prefixed with _jelly
}
 
 

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i jelly-proxy

    Weekly Downloads

    1

    Version

    0.3.0

    License

    BSD

    Last publish

    Collaborators

    • peterbraden