https://github.com/shenfe/simplehttpserver
A SimpleHTTPServer for Nodejs.
https://github.com/shenfe/simplehttpserver
dev-server nodejs proxy-server static-server
Last synced: 10 months ago
JSON representation
A SimpleHTTPServer for Nodejs.
- Host: GitHub
- URL: https://github.com/shenfe/simplehttpserver
- Owner: shenfe
- License: mit
- Created: 2017-07-13T17:19:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-17T16:52:05.000Z (over 8 years ago)
- Last Synced: 2025-02-24T14:19:42.026Z (11 months ago)
- Topics: dev-server, nodejs, proxy-server, static-server
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleHTTPServer
A SimpleHTTPServer module for Nodejs, wrapping `express` and `express-http-proxy`.
## Installation
```sh
npm install --save-dev jimple-http-server
```
## Usage
Use Nodejs API as below:
```js
const server = require('jimple-http-server');
let myServer = server([
{
to: 'dist/page'
},
{
from: '/resource',
to: 'dist/static'
},
{
from: '/ajax',
to: 'domain.com'
}
], 3000);
```
## More
* [express-http-proxy](https://github.com/villadora/express-http-proxy)
* [serve-static](https://github.com/expressjs/serve-static)
* [serve-index](https://github.com/expressjs/serve-index)
## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2017-present, [shenfe](https://github.com/shenfe)