Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny

A Koa-like middleware server built on top of node:http.

Usage

import Tiny from "tiny";

const app = Tiny();

app
  .use(Tiny.errors())
  .use(Tiny.logger())
  .use(Tiny.json())
  .use(Tiny.router());

app.get("/", (ctx) => ({ ok: true }));
app.post("/echo", (ctx) => ({ body: ctx.body }));

app.listen(3000, () => console.log("Listening on 3000"));

About

A Koa-like HTTP server wrapper on top of node:http

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages