0.1.4 • Published 7 years ago

jimple-http-server v0.1.4

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

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

More

License

MIT Copyright (c) 2017-present, shenfe