functional-expression
v2.0.4
Published
🧙 Functional Regular expression builder
Downloads
42
Maintainers
Readme
🧙 Functional Regular expression builder.
Usage
📦 Node
Install functional-expression
as a dependency:
pnpm add functional-expression
# or
npm install functional-expression
# or
yarn add functional-expression
Import it and use it:
import { build, group, or } from "functional-expression";
build("gu")(group(or("this", "that"))); // /(?:this|that)/gu
🦕 Deno
Import functional-expression
using the npm:
prefix, and use it directly:
import { build, group, or } from "npm:functional-expression";
build("gu")(group(or("this", "that"))); // /(?:this|that)/gu
🌎 Browser
Import functional-expression
using esm.sh, and use it directly:
<script type="module">
import { build, group, or } from "https://esm.sh/functional-expression";
build("gu")(group(or("this", "that"))); // /(?:this|that)/gu
</script>
Useful links
- 📝 Documentation: TypeDoc generated documentation.
- ⏳ Changelog: List of changes between versions.
- ✅ Tests Coverage: Coveralls page with tests coverage.