nextproxy

A next proxy service

Usage no npm install needed!

<script type="module">
  import nextproxy from 'https://cdn.skypack.dev/nextproxy';
</script>

README

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);