Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@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.
Changelog
v7.16.7 (2021-12-31)
babel-plugin-transform-runtime
, babel-runtime-corejs2
, babel-runtime-corejs3
, babel-runtime
babel-helpers
babel-helper-function-name
, babel-plugin-transform-function-name
babel-core
$schema
property in json config files (@The-x-Theorist)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.
The npm package @babel/plugin-proposal-unicode-property-regex receives a total of 8,288,723 weekly downloads. As such, @babel/plugin-proposal-unicode-property-regex popularity was classified as popular.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.