frame-http

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i frame-http

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

2.43 kB

Total Files

4

Last publish

Collaborators

  • francisstokes