1.0.0 • Published 6 years ago

babel-plugin-transform-xregexp v1.0.0

Weekly downloads
34
License
MIT
Repository
github
Last release
6 years ago

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']
});
1.0.0

6 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago