Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
@babel/plugin-transform-unicode-property-regex
Advanced tools
Compile Unicode property escapes in Unicode regular expressions to ES5.
The @babel/plugin-transform-unicode-property-regex package is a plugin for Babel, a JavaScript compiler, that transforms Unicode property escapes in regular expressions into a set of Unicode code points, allowing developers to write more readable and maintainable regular expressions for Unicode characters. This plugin is especially useful when targeting environments that do not support the latest ECMAScript standards.
Transform Unicode Property Escapes
This code sample demonstrates how a Unicode property escape for matching any character in the Greek script is transformed into a regular expression that matches the equivalent set of Unicode code points.
/\p{Script=Greek}/u
The regexpu-core package is a regular expression polyfill that transforms Unicode property escapes and other modern RegExp features to be compatible with older JavaScript environments. It provides similar functionality to @babel/plugin-transform-unicode-property-regex but can be used independently of Babel.
This Babel plugin transforms new RegExp constructors to string literals to ensure compatibility with older environments. While it does not specifically target Unicode property escapes, it addresses the broader issue of RegExp compatibility which is a related concern.
Compile Unicode property escapes in Unicode regular expressions to ES5.
See our website @babel/plugin-transform-unicode-property-regex for more information.
Using npm:
npm install --save-dev @babel/plugin-transform-unicode-property-regex
or using yarn:
yarn add @babel/plugin-transform-unicode-property-regex --dev
v7.23.3 (2023-11-09)
babel-plugin-transform-typescript
babel-generator
concise: true
(@liuxingbaoyu)babel-compat-data
, babel-plugin-bugfix-v8-static-class-fields-redefine-readonly
, babel-preset-env
babel-plugin-transform-object-super
super.x
in a loop (@liuxingbaoyu)babel-helper-module-transforms
, babel-plugin-transform-modules-amd
, babel-plugin-transform-modules-commonjs
, babel-plugin-transform-modules-umd
__proto__
exports name in CJS/AMD/UMD (@magic-akari)babel-core
, babel-preset-env
preset-env
(@nicolo-ribaudo)babel-generator
@babel/generator
performance (@liuxingbaoyu)babel-traverse
FAQs
Compile Unicode property escapes in Unicode regular expressions to ES5.
We found that @babel/plugin-transform-unicode-property-regex demonstrated a healthy version release cadence and project activity because the last version was released less than 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.