Skip to main content

@dldc/chemin@12.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
82%
Published
5 months ago (12.0.0)
v
chemin
No documentation available
f
cheminFactory
No documentation available
f
cheminParamsEqual
No documentation available
f
equal

Test if two chemins are equal.

f
extract

Extract all chemins from a chemin including itself.

f
flatten

Flatten a chemin into an array of chemin params.

I
IChemin
No documentation available
I
ICheminMatch
No documentation available
I
ICheminParamBase
No documentation available
I
IFirstExactMatchResult
No documentation available
I
IFirstMatchResult
No documentation available
f
isChemin
No documentation available
I
ISlashOptions
No documentation available
f
match

Match a chemin against a pathname and return the params

f
matchAll
No documentation available
f
matchAllNested
No documentation available
f
matchExact

Match a chemin against a pathname and return the params if the match is exact, otherwise null.

f
matchFirst

Match a pathname against a list of chemins and return the first match

f
matchFirstExact
No documentation available
f
namespace

Add a base to a set of chemins

f
partialMatch
No documentation available
f
pConstant
No documentation available
f
pInteger
No documentation available
f
pMultiple
No documentation available
f
pNumber
No documentation available
f
pOptional
No documentation available
f
pOptionalConst
No documentation available
f
pOptionalString
No documentation available
f
prefix
No documentation available
T
Prefixed
No documentation available
f
pString
No documentation available
f
serialize

Print a chemin from its params.

f
splitPathname
No documentation available
f
stringify

Transform a chemin into a string representation.

T
TCheminMatchMaybe
No documentation available
T
TCheminParam
No documentation available
T
TCheminParamAny
No documentation available
T
TCheminsNamespaced
No documentation available
T
TCheminsRecord
No documentation available
T
TCheminsRecordMatches
No documentation available
T
TCreateChemin
No documentation available
T
TEmptyObject
No documentation available
T
TIn
No documentation available
T
TNestedCheminsRecord
No documentation available
T
TNestedCheminsRecordMatches
No documentation available
T
TParams
No documentation available
T
TPart
No documentation available
T
TPartIsEqual
No documentation available
T
TPartMatch
No documentation available
T
TPartMatchResult
No documentation available
T
TPartSerialize
No documentation available
T
TPartStringify
No documentation available
T
TSerialize
No documentation available
T
TSimplify
No documentation available
T
TUnionParams
No documentation available