Skip to main content

Built and signed on GitHub Actions

🧙‍♀️ Magical regular expressions composer.

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
2 weeks ago (0.3.2)
Coven Engineering Expression logo

JSR JSR Score

🧙‍♀️ Magical regular expressions composer.

It is really easy to mess big regular expressions by forgetting some character. So, instead of using plain strings, @coven/expression provides a set of functions and constants strongly typed, so the type is already a hardcoded string that reflects the regular expression being built, while giving an API that's easier to read and maintain.

Like all Coven Engineering libraries, it has 100% test coverage and it's built in top of modern tech compatible with all JavaScript runtimes.

Example

import { buildUnicode, group, or } from "@coven/expression";

buildUnicode(group(or("this", "that"))); // /(?:this|that)/u
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@coven/expression

Import symbol

import * as _coven_expression from "@coven/expression";

---- OR ----

Import directly with a jsr specifier

import * as _coven_expression from "jsr:@coven/expression";

Add Package

npx jsr add @coven/expression

Import symbol

import * as _coven_expression from "@coven/expression";

Add Package

yarn dlx jsr add @coven/expression

Import symbol

import * as _coven_expression from "@coven/expression";

Add Package

pnpm dlx jsr add @coven/expression

Import symbol

import * as _coven_expression from "@coven/expression";

Add Package

bunx jsr add @coven/expression

Import symbol

import * as _coven_expression from "@coven/expression";