0.0.1 • Published 5 years ago

frame-http v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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);