Skip to content

Absesay/tiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors