jimple-http-server
v0.1.4
Published
A SimpleHTTPServer module for Nodejs, wrapping `express` and `express-http-proxy`.
Downloads
8
Maintainers
Readme
SimpleHTTPServer
A SimpleHTTPServer module for Nodejs, wrapping express
and express-http-proxy
.
Installation
npm install --save-dev jimple-http-server
Usage
Use Nodejs API as below:
const path = require('path');
const server = require('jimple-http-server'));
let myServer = server([
{
to: 'dist/page'
},
{
from: '/resource',
to: 'dist/static'
},
{
from: '/ajax',
to: 'domain.com'
}
], 3000);