Skip to main content

Built and signed on GitHub Actions

Powerful and flexible pattern matching utility, inspired by functional programming paradigms.

This package works with Deno, BunIt is unknown whether this package works with Cloudflare Workers, Node.js, Browsers
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
This package works with Bun
It is unknown whether this package works with Browsers
JSR Score
94%
Published
6 months ago (0.2.1)
type alias Match

Definition

<T extends Switch | Invalid>(
arg?: T,
...actionParams: ActionParams,
) => MatchChain<T, unknown>

Add Package

deno add jsr:@jgusta/match

Import symbol

import { type Match } from "@jgusta/match";

---- OR ----

Import directly with a jsr specifier

import { type Match } from "jsr:@jgusta/match";

Add Package

npx jsr add @jgusta/match

Import symbol

import { type Match } from "@jgusta/match";

Add Package

yarn dlx jsr add @jgusta/match

Import symbol

import { type Match } from "@jgusta/match";

Add Package

pnpm dlx jsr add @jgusta/match

Import symbol

import { type Match } from "@jgusta/match";

Add Package

bunx jsr add @jgusta/match

Import symbol

import { type Match } from "@jgusta/match";