Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xregexp-quotemeta

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xregexp-quotemeta

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

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.3K
increased by19.12%
Maintainers
1
Weekly downloads
 
Created
Source

xregexp-quotemeta 1.0.6

xregexp-quotemeta augments XRegExp to support the \Q..\E construct for escaping special regular expression characters. The functionality is added as an XRegExp addon. The specific semantics of quotemeta support are described in slevithan/xregexp#85.

Installation and usage

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

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

Using npm:

npm install xregexp-quotemeta

In Node.js:

var XRegExp = require('xregexp');
var quotemeta = require('xregexp-quotemeta');
quotemeta.addSupportTo(XRegExp);

In an AMD loader like RequireJS:

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

About

xregexp-quotemeta copyright 2018 by Brandon Mintern and copyright 2015 by Steven Levithan.

All code, including addons, tools, and tests, is released under the terms of the MIT License.

Keywords

FAQs

Package last updated on 16 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc