Socket
Socket
Sign inDemoInstall

@babel/plugin-proposal-unicode-property-regex

Package Overview
Dependencies
65
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/plugin-proposal-unicode-property-regex

Compile Unicode property escapes in Unicode regular expressions to ES5.


Version published
Weekly downloads
10M
decreased by-2.76%
Maintainers
4
Install size
1.82 MB
Created
Weekly downloads
 

Package description

What is @babel/plugin-proposal-unicode-property-regex?

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.

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

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

Other packages similar to @babel/plugin-proposal-unicode-property-regex

Changelog

Source

v7.17.12 (2022-05-16)

:bug: Bug Fix
  • babel-plugin-transform-react-constant-elements
    • #14536 Never hoist JSX elts referencing vars from the current scope (@nicolo-ribaudo)
  • babel-generator
    • #14524 fix: perserve parentheses of lhs id with rhs unamed fn (@JLHwung)
    • #14532 Print necessary parentheses for functions in postfix expressions (@xiawenqi)
  • babel-plugin-transform-destructuring
    • #14494 Update scope info after destructuring transform (@peey)
  • babel-parser
  • babel-parser, babel-plugin-transform-destructuring, babel-types
:house: Internal
  • babel-plugin-proposal-decorators, babel-types
  • babel-core
  • babel-core, babel-generator, babel-helper-create-class-features-plugin, babel-helper-create-regexp-features-plugin, babel-helper-module-transforms, babel-helper-plugin-utils, babel-parser, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-external-helpers, babel-plugin-proposal-async-do-expressions, babel-plugin-proposal-async-generator-functions, babel-plugin-proposal-class-properties, babel-plugin-proposal-class-static-block, babel-plugin-proposal-decorators, babel-plugin-proposal-export-default-from, babel-plugin-proposal-export-namespace-from, babel-plugin-proposal-function-sent, babel-plugin-proposal-json-strings, babel-plugin-proposal-logical-assignment-operators, babel-plugin-proposal-nullish-coalescing-operator, babel-plugin-proposal-object-rest-spread, babel-plugin-proposal-optional-chaining, babel-plugin-proposal-partial-application, babel-plugin-proposal-pipeline-operator, babel-plugin-proposal-private-methods, babel-plugin-proposal-private-property-in-object, babel-plugin-proposal-record-and-tuple, babel-plugin-proposal-unicode-property-regex, babel-plugin-syntax-decorators, babel-plugin-syntax-destructuring-private, babel-plugin-syntax-flow, babel-plugin-syntax-import-assertions, babel-plugin-syntax-pipeline-operator, babel-plugin-syntax-record-and-tuple, babel-plugin-syntax-typescript, babel-plugin-transform-arrow-functions, babel-plugin-transform-async-to-generator, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-computed-properties, babel-plugin-transform-destructuring, babel-plugin-transform-duplicate-keys, babel-plugin-transform-flow-comments, babel-plugin-transform-flow-strip-types, babel-plugin-transform-for-of, babel-plugin-transform-instanceof, babel-plugin-transform-jscript, babel-plugin-transform-literals, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-systemjs, babel-plugin-transform-modules-umd, babel-plugin-transform-named-capturing-groups-regex, babel-plugin-transform-new-target, babel-plugin-transform-parameters, babel-plugin-transform-property-mutators, babel-plugin-transform-proto-to-assign, babel-plugin-transform-react-constant-elements, babel-plugin-transform-react-jsx, babel-plugin-transform-reserved-words, babel-plugin-transform-runtime, babel-plugin-transform-spread, babel-plugin-transform-template-literals, babel-plugin-transform-typeof-symbol, babel-plugin-transform-typescript, babel-preset-env, babel-preset-flow, babel-preset-react, babel-preset-typescript, babel-traverse, babel-types

Readme

Source

@babel/plugin-proposal-unicode-property-regex

Compile Unicode property escapes in Unicode regular expressions to ES5.

See our website @babel/plugin-proposal-unicode-property-regex for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-proposal-unicode-property-regex

or using yarn:

yarn add @babel/plugin-proposal-unicode-property-regex --dev

Keywords

FAQs

Last updated on 16 May 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc