node-decorate

A proxy server to decorate a html/xml document with jQuery.

node-decorate

A proxy server to decorate a html/xml document with jQuery.

  • Install to server(s) web server running.
  • Route HTTP requests to this proxy.
  • Install to any server(s).
  • Access this proxy by formatted URL.(see below)
npm install node-decorate

Comming soon !

  1. Edit /src/custom.js
module.exports = {
  append_manipulate : ['hello']
}
 
module.exports.proc_for_elements = {
  hello : function($) {
    $('body').attr('onload', 'alert("Hello, world !")');
  }
};
  1. Start a proxy.
node index.js
  1. Access any site through this proxy. ex. http://127.0.0.1:8124/http/nodejs.org/
  • Host is this proxy. http://127.0.0.1:8124/http/nodejs.org/api/

  • Protocol of target URL (now, http only) http://127.0.0.1:8124**/http**/nodejs.org/api/

  • Host and path of target URL http://127.0.0.1:8124/http**/nodejs.org/api/**

npm start

TODO: later

TODO: later