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
indexMatch
type alias Match
deno add @fartlabs/rt
import { type Match } from "@fartlabs/rt";
npx jsr add @fartlabs/rt
import { type Match } from "@fartlabs/rt";
yarn dlx jsr add @fartlabs/rt
import { type Match } from "@fartlabs/rt";
pnpm dlx jsr add @fartlabs/rt
import { type Match } from "@fartlabs/rt";
bunx jsr add @fartlabs/rt
import { type Match } from "@fartlabs/rt";

Match is a type which matches a Request object.

Definition

((detail: { request: Request; url: URL; }) => Promise<boolean>) | { pattern?: URLPattern; method?: Method; }