Skip to main content

@fartlabs/rt@0.0.2

Minimal HTTP router library based on the URLPattern API.

Works with
It is unknown whether this package works with Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Browsers
JSR Score
100%
Published
5 days ago
indexcreateRouter
function createRouter
deno add @fartlabs/rt
import { createRouter } from "@fartlabs/rt";
npx jsr add @fartlabs/rt
import { createRouter } from "@fartlabs/rt";
yarn dlx jsr add @fartlabs/rt
import { createRouter } from "@fartlabs/rt";
pnpm dlx jsr add @fartlabs/rt
import { createRouter } from "@fartlabs/rt";
bunx jsr add @fartlabs/rt
import { createRouter } from "@fartlabs/rt";

createRouter creates a new router.

Parameters

optional
fn: (r: Router) => Router

Return Type