Socket
Socket
Sign inDemoInstall

babel-plugin-transform-dotall-regex

Package Overview
Dependencies
19
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
4.54 MB
Created
Weekly downloads
 

Readme

Source

babel-plugin-transform-dotall-regex Build status

Compile regular expressions using the s (dotAll) flag to ES5 that works in today’s environments.

For example, /./s is transpiled into /[\0-\uFFFF]/, and /./su is transpiled into /[\0-\u{10FFFF}]/u.

Here’s an online demo.

Installation

$ npm install babel-plugin-transform-dotall-regex

Usage

.babelrc

{
  "plugins": ["transform-dotall-regex"]
}

Via CLI

$ babel --plugins transform-dotall-regex script.js

Via Node.js API

require('babel-core').transform(code, {
  'plugins': ['transform-dotall-regex']
});

Author

twitter/mathias
Mathias Bynens

License

This code is available under the MIT license.

Keywords

FAQs

Last updated on 19 Dec 2017

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