Skip to main content

@rregex/rregex@1.10.11

A dependency-free WebAssembly build of Rust Regex for Javascript

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Browsers
JSR Score
76%
Published
3 weeks ago
indexescape
function escape
deno add @rregex/rregex
import { escape } from "@rregex/rregex";
npx jsr add @rregex/rregex
import { escape } from "@rregex/rregex";
yarn dlx jsr add @rregex/rregex
import { escape } from "@rregex/rregex";
pnpm dlx jsr add @rregex/rregex
import { escape } from "@rregex/rregex";
bunx jsr add @rregex/rregex
import { escape } from "@rregex/rregex";

Escapes all regular expression meta characters in text.

The string returned may be safely used as a literal in a regular expression.

Parameters

text

Return Type