@tinyhttp/router
TypeScript icon, indicating that this package has built-in type declarations

2.2.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @tinyhttp/router

      Weekly Downloads

      60,707

      Version

      2.2.2

      License

      MIT

      Unpacked Size

      25.7 kB

      Total Files

      7

      Last publish

      Collaborators

      • dropthebeatbro