proxyco
v0.0.2
Published
a simple proxy solution in native node, this is just a draft.
Downloads
2
Readme
Proxyco
a simple proxy solution in native node, this is just a draft.
Setup
npm i proxyco
Usage
//proxy.js
const Server = require("proxyco/server");
const routes = require("./routes");
const options = {};
const server = new Server(routes, options);
server.start(port);
//roues.js
module.exports = [
{
hostname: "localhost",
port: 8125,
path: `/\/api\//`,
method: "*",
headers: {
service: 1,
},
},
];