Frontend/25_02_24/node_modules/@tinyhttp/router
2025-02-25 09:55:29 +01:00
..
dist added doga 2025-02-25 09:55:29 +01:00
LICENSE added doga 2025-02-25 09:55:29 +01:00
package.json added doga 2025-02-25 09:55:29 +01:00
README.md added doga 2025-02-25 09:55:29 +01:00
tsconfig.tsbuildinfo added doga 2025-02-25 09:55:29 +01:00

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