@coven/expression@0.3.2Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
🧙♀️ Magical regular expressions composer.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
100%
Published
2 weeks ago (0.3.2)
🧙♀️ 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
Other links
Built and signed on
View transparency logGitHub Actions
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";