Skip to main content

@dldc/chemin@13.0.0
Built and signed on GitHub Actions

A type-safe pattern builder & route matching library written in TypeScript

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a week ago (13.0.0)
interface TCheminMatch

Chemin match result

Type Parameters

Params

Properties

readonly
params: Params

Params extracted from the pathname

Rest of the pathname that was not matched

readonly
exact: boolean

True if the match is exact (rest is empty)

Add Package

deno add jsr:@dldc/chemin

Import symbol

import { type TCheminMatch } from "@dldc/chemin";

---- OR ----

Import directly with a jsr specifier

import { type TCheminMatch } from "jsr:@dldc/chemin";

Add Package

npx jsr add @dldc/chemin

Import symbol

import { type TCheminMatch } from "@dldc/chemin";

Add Package

yarn dlx jsr add @dldc/chemin

Import symbol

import { type TCheminMatch } from "@dldc/chemin";

Add Package

pnpm dlx jsr add @dldc/chemin

Import symbol

import { type TCheminMatch } from "@dldc/chemin";

Add Package

bunx jsr add @dldc/chemin

Import symbol

import { type TCheminMatch } from "@dldc/chemin";