retrie

0.1.1 • Public • Published

Retrie

JS port of @dankogai's RegexpTrie, written in Coco.

usage

RegExp('^' + Retrie(['a', 'ab', 'ac', 'd']))  //=> /^(?:a[bc]?|d)/
RegExp('^' + Retrie(['abcd'], true))          //=> /^a(?:b(?:cd?)?)?/

Readme

Keywords

none

Package Sidebar

Install

npm i retrie

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • satyr