Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-named-capturing-groups-regex

Package Overview
Dependencies
65
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/plugin-transform-named-capturing-groups-regex

Compile regular expressions using named groups to ES5.


Version published
Weekly downloads
17M
decreased by-18.44%
Maintainers
4
Install size
3.26 MB
Created
Weekly downloads
 

Package description

What is @babel/plugin-transform-named-capturing-groups-regex?

The @babel/plugin-transform-named-capturing-groups-regex package allows Babel to transform named capturing groups in regular expressions into a format that can be understood by environments that do not support this feature natively. Named capturing groups in regular expressions provide a way to assign names to the various parts of a matched input, making the regex more readable and the matches easier to work with.

What are @babel/plugin-transform-named-capturing-groups-regex's main functionalities?

Transformation of named capturing groups

This feature allows developers to use named capturing groups in their regular expressions, which are then transformed by Babel for compatibility with environments that do not support this syntax. The code sample shows a regular expression that uses named capturing groups to match a date format.

"const regex = /(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})/;"

Other packages similar to @babel/plugin-transform-named-capturing-groups-regex

Changelog

Source

v7.22.5 (2023-06-08)

:bug: Bug Fix
  • babel-preset-env, babel-standalone
    • #15675 Fix using syntax-unicode-sets-regex in standalone (@nicolo-ribaudo)
:nail_care: Polish

Readme

Source

@babel/plugin-transform-named-capturing-groups-regex

Compile regular expressions using named groups to ES5.

See our website @babel/plugin-transform-named-capturing-groups-regex for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-transform-named-capturing-groups-regex

or using yarn:

yarn add @babel/plugin-transform-named-capturing-groups-regex --dev

Keywords

FAQs

Last updated on 08 Jun 2023

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