node-proxy-lib
v1.0.0
Published
Node.js proxy server
Downloads
7
Readme
node-proxy-lib
node.js proxy server
npm i node-proxy-lib
import { createProxy } from 'node-proxy-lib';
const proxy = createProxy();
proxy([
{
pattern: /(?<path>api\/.+)/,
host: '127.0.0.1',
port: 8081
},
{
pattern: /(?<path>.+)/,
host: '127.0.0.1',
port: 8080
}
]);