proxyco

0.0.2 • Public • Published

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,
    },
  },
];

Readme

Keywords

none

Package Sidebar

Install

npm i proxyco

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

4 kB

Total Files

8

Last publish

Collaborators

  • niradler55