# xregexp-quotemeta

> \Q..\E (quotemeta) support for XRegExp

Latest version **1.0.9** (published 2025-01-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install xregexp-quotemeta
pnpm add xregexp-quotemeta
yarn add xregexp-quotemeta
bun add xregexp-quotemeta
```

## Health

**Score 35/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2025-01-01 |
| First published | 2016-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Brandon Mintern |
| Maintainers | mintern |
| Keywords | regex, regexp, regular expression, xregexp, quotemeta, quote, meta, q, escape |

## Links

- npm: https://www.npmjs.com/package/xregexp-quotemeta
- Repository: https://github.com/mintern/xregexp-quotemeta
- Issues: https://github.com/mintern/xregexp-quotemeta/issues
- npm.io page: https://npm.io/package/xregexp-quotemeta

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2025-01-01
- 1.0.8 — 2025-01-01
- 1.0.7 — 2021-01-05
- 1.0.6 — 2020-07-16
- 1.0.5 — 2020-03-31
- 1.0.4 — 2018-05-10
- 1.0.3 — 2016-06-12
- 1.0.2 — 2016-06-11
- 1.0.1 — 2016-06-11
- 1.0.0 — 2016-06-11

## README

xregexp-quotemeta 1.0.9
====================================

xregexp-quotemeta augments [XRegExp](http://xregexp.com/) to support the [`\Q..\E`](http://www.regular-expressions.info/characters.html#special) construct for escaping special regular expression characters.
The functionality is added as an [XRegExp addon](http://xregexp.com/plugins/).
The specific semantics of quotemeta support are described in [slevithan/xregexp#85](https://github.com/slevithan/xregexp/issues/85).

## Installation and usage

In browsers (bundle XRegExp with all of its addons):

```html
<script src="xregexp-all.js"></script>
<script src="xregexp-quotemeta-inject.js"></script>
```

Using [npm](https://www.npmjs.com/):

```bash
npm install xregexp-quotemeta
```

In [Node.js](http://nodejs.org/):

```js
const XRegExp = require('xregexp');
const quotemeta = require('xregexp-quotemeta');
quotemeta.addSupportTo(XRegExp);
```

In an AMD loader like [RequireJS](http://requirejs.org/):

```js
require(['xregexp', 'xregexp-quotemeta'], function(XRegExp, quotemeta) {
    quotemeta.addSupportTo(XRegExp);
});
```

## About

xregexp-quotemeta copyright 2018 by Brandon Mintern and copyright 2015 by [Steven Levithan](http://stevenlevithan.com/).

All code, including addons, tools, and tests, is released under the terms of the [MIT License](http://mit-license.org/).

---
_Source: https://npm.io/package/xregexp-quotemeta · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
