@babel/helper-create-regexp-features-plugin

  • Version 8.0.1
  • Published
  • 22.4 kB
  • 3 dependencies
  • MIT license

Install

npm i @babel/helper-create-regexp-features-plugin
yarn add @babel/helper-create-regexp-features-plugin
pnpm add @babel/helper-create-regexp-features-plugin

Overview

Compile ESNext Regular Expressions to ES5

Index

Variables

variable FEATURES

const FEATURES: Readonly<{
unicodeFlag: number;
dotAllFlag: number;
unicodePropertyEscape: number;
namedCaptureGroups: number;
unicodeSetsFlag_syntax: number;
unicodeSetsFlag: number;
duplicateNamedCaptureGroups: number;
modifiers: number;
}>;

    Functions

    function createRegExpFeaturePlugin

    createRegExpFeaturePlugin: ({
    name,
    feature,
    options,
    manipulateOptions,
    }: Options) => PluginObject;

      Interfaces

      interface Options

      interface Options {}

        property feature

        feature: keyof typeof FEATURES;

          property manipulateOptions

          manipulateOptions?: PluginObject['manipulateOptions'];

            property name

            name: string;

              property options

              options?: {
              useUnicodeFlag?: boolean;
              runtime?: boolean;
              };

                Package Files (1)

                Dependencies (3)

                Dev Dependencies (2)

                Peer Dependencies (1)

                Badge

                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@babel/helper-create-regexp-features-plugin.

                • Markdown
                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@babel/helper-create-regexp-features-plugin)
                • HTML
                  <a href="https://www.jsdocs.io/package/@babel/helper-create-regexp-features-plugin"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>