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

@babel/plugin-syntax-unicode-sets-regex

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-unicode-sets-regex

Parse regular expressions' unicodeSets (v) flag.

  • 7.18.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16M
increased by7.45%
Maintainers
4
Weekly downloads
 
Created

What is @babel/plugin-syntax-unicode-sets-regex?

The @babel/plugin-syntax-unicode-sets-regex package allows Babel to parse regular expressions that use the Unicode property escapes syntax within character classes. This is part of the ECMAScript 2021 specification. The plugin itself does not transform these regular expressions; it only enables Babel to understand them during the parsing phase, which is useful when working with next-generation JavaScript features.

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

Parsing Unicode property escapes in regex

This feature allows Babel to parse regular expressions that include Unicode property escapes, such as matching characters of a specific script like Hiragana. The 'u' flag is necessary for these expressions.

/\p{Script=Hiragana}+/u

Other packages similar to @babel/plugin-syntax-unicode-sets-regex

Keywords

FAQs

Package last updated on 27 Jun 2022

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