Trusktr Regexr Versions Save

Easily compose regular expressions without the need for double-escaping inside strings.

v2.0.0

1 year ago

Converts the code to TypeScript, and restructures the exports:

Breaking:

  • Default export converted to named export. Use import {r} from 'regexr' instead of import r from 'regexr'.
  • Helpers and regexes no longer added to the r function, but as exported separately. For example use import {escape} from 'regexr'; escape(...) instead of import r from 'regexr'; r.escape(...), and import {identifier} from 'regexr/regexes'; identifier instead of import r from 'regexr'; r.identifier

Features

  • new e alias added for escape: import {e} from 'regexr'; e(someString)

v1.0.0

1 year ago

First stable release from a long time ago.