New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-transform-dotall-regex

Package Overview
Dependencies
Maintainers
4
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-dotall-regex

Compile regular expressions using the `s` (`dotAll`) flag to ES5.

8.0.0-alpha.17
next
Source
npm
Version published
Weekly downloads
20M
-16.93%
Maintainers
4
Weekly downloads
 
Created

What is @babel/plugin-transform-dotall-regex?

The @babel/plugin-transform-dotall-regex package is a plugin for Babel, a JavaScript compiler, that transforms regular expressions with the dotAll flag (s flag) to be compatible with environments that do not support this feature. The dotAll flag allows the dot (.) in regular expressions to match any character, including newline characters, which it normally does not match. This plugin ensures that code using the dotAll flag can run in environments that have not implemented this ES2018 feature.

What are @babel/plugin-transform-dotall-regex's main functionalities?

Transformation of dotAll regular expressions

This code demonstrates how a regular expression with the dotAll flag (s flag) is written. The @babel/plugin-transform-dotall-regex plugin would transform this expression into a form that can be executed in JavaScript environments that do not support the dotAll flag, ensuring compatibility.

"use strict";\n\nvar regex = /foo.bar/s;

Other packages similar to @babel/plugin-transform-dotall-regex

Keywords

babel-plugin

FAQs

Package last updated on 11 Mar 2025

Did you know?

Socket

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