npm.io
1.0.0 • Published 10 years ago

eserve

Licence
ISC
Version
1.0.0
Deps
11
Vulns
1
Weekly
0

eServe

eServe is a express server with simple API for static files serving and http proxing. The problem that eServe is solving is a simple API based library that mounts static files and HTTP proxies onto express app and serves them.

Example

Install eServe

npm install eserve --save

Your index.js or some other file for serving and proxing.

const eserve = require('eserve');

// serve build files
eserve.statics('build');
// serve proxy api
eserve.proxy('/api/fixer', 'http://api.fixer.io/latest');
// start server on 3000 port and localhost
eserve.start(3000, 'localhost');