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

Route represents a the pairing of a matcher and a handler.

Type Parameters

T extends string = string

Properties

handle is called to handle a request.

optional
match: Match

match is called to match a request.