UNPKG

redos-detector

Version:

A CLI and library which tests helps score how vulnerable a regex pattern is to ReDoS attacks. Supported in the browser, Node and Deno.

8 lines (7 loc) 359 B
import { CharacterReader, CharacterReaderValueGroups } from './character-reader-level-0'; /** * Maps each value of a `CharacterReader` from one value to another. * * It handles the `split` type internally. */ export declare function map(reader: CharacterReader, handle: (value: CharacterReaderValueGroups) => CharacterReaderValueGroups): CharacterReader;