You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

babel-plugin-transform-unicode-property-regex

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-unicode-property-regex

Compile Unicode property escapes in Unicode regular expressions to ES5.


Version published
Weekly downloads
1.4K
decreased by-8.46%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

babel-plugin-transform-unicode-property-regex Build status

Compile Unicode property escapes (\p{…} and \P{…}) in Unicode regular expressions to ES5 or ES6 that works in today’s environments.

Note: the Unicode property escape syntax is non-standard and may or may not reflect what eventually gets specified.

Here’s an online demo.

Installation

$ npm install babel-plugin-transform-unicode-property-regex

Usage

.babelrc

{
  "plugins": ["transform-unicode-property-regex"]
}

Via CLI

$ babel --plugins transform-unicode-property-regex script.js

Via Node.js API

require('babel-core').transform(code, {
  'plugins': ['transform-unicode-property-regex']
});

To transpile to ES6/ES2015:

require('babel-core').transform(code, {
  'plugins': [
    ['transform-unicode-property-regex', { 'useUnicodeFlag': true }]
  ]
});

Author

twitter/mathias
Mathias Bynens

License

This code is available under the MIT license.

Keywords

FAQs

Package last updated on 18 Sep 2017

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc