1.0.1 • Published 7 years ago

julien-proxy v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

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