functional-expression
TypeScript icon, indicating that this package has built-in type declarations

2.0.4Β β€’Β PublicΒ β€’Β Published

Coverage License NPM Version Open Issues Size

πŸ§™ 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

Package Sidebar

Install

npm i functional-expression

Weekly Downloads

7

Version

2.0.4

License

MIT

Unpacked Size

32.3 kB

Total Files

61

Last publish

Collaborators

  • loucyx