@gerhobbelt/babel-plugin-transform-xregexp

Use XRegExp syntax in your regular expressions

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
60May 10, 2021Feb 18, 2017Minified + gzip package size for @gerhobbelt/babel-plugin-transform-xregexp in KB

Readme

babel-plugin-transform-xregexp

Use XRegExp syntax in your regular expressions. See the tests for a few examples of supported syntax. Note that not all XRegExp syntax can be parsed by Babel.

Installation

yarn add --dev babel-plugin-transform-xregexp
# or
npm install --save-dev babel-plugin-transform-xregexp

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-xregexp"]
}

Via CLI

$ babel --plugins transform-xregexp script.js

Via Node API

require('babel').transform('code', {
  plugins: ['transform-xregexp']
});

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.