![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@babel/plugin-proposal-unicode-property-regex
Advanced tools
Package description
The @babel/plugin-proposal-unicode-property-regex package allows Babel to compile regular expressions using Unicode property escapes (`\p{...}` and `\P{...}`) to ES5. This is particularly useful for writing more readable and maintainable regular expressions that match characters based on their Unicode properties, such as letters, numbers, script, or emoji.
Unicode property escapes in regular expressions
This feature enables the use of Unicode property escapes in regular expressions to match characters based on their Unicode properties. In this example, the regular expression matches one or more characters that are part of the Hiragana script.
/\p{Script=Hiragana}+/u.source
regexpu-core is a package that transforms ES2015 Unicode regular expressions into equivalent ES5. It provides similar functionality to @babel/plugin-proposal-unicode-property-regex by allowing developers to use Unicode property escapes in their regular expressions. However, regexpu-core is a more focused library that specifically targets the transformation of Unicode regular expressions, while @babel/plugin-proposal-unicode-property-regex is a Babel plugin that integrates with the Babel ecosystem for broader JavaScript code transformation.
unicode-match-property-ecmascript is a lower-level package that provides the functionality to match Unicode properties and values in accordance with the ECMAScript specification. It is used by other packages, including regexpu-core, to implement Unicode property escapes in regular expressions. Unlike @babel/plugin-proposal-unicode-property-regex, which is a Babel plugin for transforming code, unicode-match-property-ecmascript serves as a utility library for dealing with Unicode properties, making it a complementary rather than a directly similar package.
Readme
Compile Unicode property escapes in Unicode regular expressions to ES5.
See our website @babel/plugin-proposal-unicode-property-regex for more information.
Using npm:
npm install --save-dev @babel/plugin-proposal-unicode-property-regex
or using yarn:
yarn add @babel/plugin-proposal-unicode-property-regex --dev
FAQs
Compile Unicode property escapes in Unicode regular expressions to ES5.
We found that @babel/plugin-proposal-unicode-property-regex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.