light-http-server
v1.0.15
Published
Lightweight express like web framework for node.
Downloads
15
Maintainers
Readme
Light http server
Lightweight express like web framework for node.
const server = require('light-http-server');
server.get('/', function (req, res) {
res.send('It works.')
});
server.listen(80)
Added support for https
const server = require('light-http-server');
const fs = require('fs');
const options = {
key: fs.readFileSync('server.key'),
cert: fs.readFileSync('server.cert'),
port:443
};
server.get('/', function (req, res) {
res.send('It works.')
});
server.listen(options)
Installation
$ npm install light-http-server
Features
- No module dependencies
- Lightweight and fast
- Express like syntax
- Quick app prototyping