frame-http
v0.0.1
Published
Laughably minimal http framework combining the best parts of express and koa
Downloads
4
Readme
Frame
Frame is <100 line, zero dependency, middleware only express/koa-like framework built on top of the http/https
module.
Example
const http = require('http');
const Frame = require('frame-http');
const app = new Frame();
const server = http.createServer(app.handler);
app.use(ctx => {
ctx.setStatus(200);
ctx.send({
message: 'Hello world!'
});
});
server.listen(3000);