Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Dexecure/JS-Proxy

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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 node-js-proxy

The callback function is called for each node returned by a modified fork of falafel. (The node returned has a few extra attributes)

var proxy = require('node-js-proxy');

var options = {};
options.port = 9003;
options.parse = true;
options.threads = 3;
options.preprocess = function(input){
     // add in your preprocessing logic here
     return input;
};
options.postprocess = function(input){
     // add in your postprocessing logic here
     return input;
};
options.instrument = function(node) {
    if(node.type == "Program") {
   	node.update("'use strict;';\n" + node.source());
    }
}

proxy.start(options);

About

A multithreaded man-in-the-middle proxy which captures JavaScript on the fly and lets you modify it using a callback.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.