jimple-http-server

0.1.4 • Public • Published

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

Package Sidebar

Install

npm i jimple-http-server

Weekly Downloads

4

Version

0.1.4

License

MIT

Last publish

Collaborators

  • hengwu