Skip to content

🎣 Convert your set of strings to optimized RegExps at build time.

Notifications You must be signed in to change notification settings

Andarist/regexgen.macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,
})

About

🎣 Convert your set of strings to optimized RegExps at build time.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published