Skip to content

shenfe/SimpleHTTPServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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