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

@babel/plugin-transform-unicode-regex

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-unicode-regex

Compile ES2015 Unicode regex to ES5

  • 7.25.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15M
decreased by-33.33%
Maintainers
4
Weekly downloads
 
Created

What is @babel/plugin-transform-unicode-regex?

The @babel/plugin-transform-unicode-regex package is a plugin for Babel, a JavaScript compiler, that transforms Unicode regular expressions into equivalent ES5 syntax. This is particularly useful for ensuring compatibility with older environments that do not support Unicode property escapes in regular expressions.

What are @babel/plugin-transform-unicode-regex's main functionalities?

Transform Unicode Regular Expressions

This plugin transforms Unicode regular expressions like the one above into an ES5-compatible syntax. The 'u' flag in the regular expression indicates that it's using Unicode mode, which is not supported in older JavaScript environments. The plugin will convert this to a form that can be understood by these environments.

const regex = /\p{Script=Greek}/u;

Other packages similar to @babel/plugin-transform-unicode-regex

Keywords

FAQs

Package last updated on 22 Oct 2024

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