ios-dev/comments/Home/node_modules/@tinyhttp/router
Ernest Litvinenko 0066e66a47 Initial 2024-03-11 14:47:28 +03:00
..
dist Initial 2024-03-11 14:47:28 +03:00
LICENSE Initial 2024-03-11 14:47:28 +03:00
README.md Initial 2024-03-11 14:47:28 +03:00
package.json Initial 2024-03-11 14:47:28 +03:00

README.md

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