julien-proxy

1.0.1 • Public • Published

local proxy server

start a proxy server on localhost

install

npm install julien-proxy

Usage

var startServer = require("julien-proxy");

startServer({
    path: "where to start static asset server",
    proxy: "proxy options",
    port: "port that server will listen"
});

About proxy options you can refer to http-proxy-middleware

example

startServer({
    path: __dirname,
    proxy: {
        target: "http://host.com",
        changeOrigin: true
    },
    port: 8000
})

Readme

Keywords

Package Sidebar

Install

npm i julien-proxy

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • lakerswgq