regexgen.macro

1.1.0 • Public • Published

regexgen.macro

Babel Macro npm version Build Status npm

Convert your set of strings to optimized RegExps at build time with babel macros.

Installation

npm install --save-dev regexgen.macro

Usage

import regexgen from 'regexgen.macro'
 
regexgen('children dangerouslySetInnerHTML key ref autoFocus defaultValue')
 
regexgen([
  'children',
  'dangerouslySetInnerHTML',
  'key',
  'ref',
  'autoFocus',
  'defaultValue',
])
 
regexgen({
  children: true,
  dangerouslySetInnerHTML: true,
  key: true,
  ref: true,
  autoFocus: true,
  defaultValue: true,
})

/regexgen.macro/

    Package Sidebar

    Install

    npm i regexgen.macro

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    8.3 kB

    Total Files

    3

    Last publish

    Collaborators

    • andarist