npm.io
2.2.5 • Published 6 months ago

@tinyhttp/router

Licence
MIT
Version
2.2.5
Deps
1
Size
25 kB
Vulns
0
Weekly
0
Stars
2.9K

@tinyhttp/router

npm (scoped) npm

Framework-agnostic HTTP router.

Install

pnpm i @tinyhttp/router

Example

import { Router } from '@tinyhttp/router'

const router = new Router()

router.get('/', (req, res) => res.send('Hello World'))

console.log(router.middleware)

Keywords