0.0.1 • Published 8 years ago

nextproxy v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Next Proxy

A Node Proxy service

NPM NPM

npm install nextproxy

Example

'use strict';

const PORT           = 5000;
const DESTINATION_P  = 8888;
const DESTINATION_IP = '127.0.0.1';
const NEXTPROXY      = require('nextproxy');
const APP            = new NEXTPROXY();

APP.destination(DESTINATION_IP, DESTINATION_P);
APP.listen(PORT);

APP.on('error', function (err) {
  console.log(err.stack);
});

console.log('Listening on port: ' + PORT + ' proxying to ' + DESTINATION_IP + ':' + DESTINATION_P);