Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/istador/babel-plugin-transform-unicode-regexp-runtime
This replaces regexp literals and constructors that contain the unicode flag at compile time or at runtime if needed.
https://github.com/istador/babel-plugin-transform-unicode-regexp-runtime
babel babel-plugin backward-compatibility javascript regexp unicode
Last synced: about 1 month ago
JSON representation
This replaces regexp literals and constructors that contain the unicode flag at compile time or at runtime if needed.
- Host: GitHub
- URL: https://github.com/istador/babel-plugin-transform-unicode-regexp-runtime
- Owner: Istador
- License: mpl-2.0
- Created: 2019-11-20T02:01:20.000Z (about 5 years ago)
- Default Branch: public
- Last Pushed: 2023-01-08T13:18:16.000Z (almost 2 years ago)
- Last Synced: 2024-11-20T22:09:42.526Z (about 1 month ago)
- Topics: babel, babel-plugin, backward-compatibility, javascript, regexp, unicode
- Language: JavaScript
- Homepage:
- Size: 95.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# babel-plugin-transform-unicode-regexp-runtime [![npm][npm-image]][npm-url]
[npm-image]: https://img.shields.io/npm/v/babel-plugin-transform-unicode-regexp-runtime.svg
[npm-url]: https://npmjs.org/package/babel-plugin-transform-unicode-regexp-runtimeThis replaces regexp literals and constructors that contain the unicode flag at compile time or at runtime if needed.
## Installation
```sh
npm install --save-dev babel-plugin-transform-unicode-regexp-runtime
```## Usage
### Via `.babelrc`
**.babelrc**
```json
{
"plugins": [ "transform-unicode-regexp-runtime" ]
}
```### Via CLI
```sh
babel --plugins transform-unicode-regexp-runtime script.js
```### Via Node API
```javascript
require('@babel/core').transform('code', {
plugins: [ 'transform-unicode-regexp-runtime' ],
})
```