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.

10 lines (9 loc) 227 B
export declare class Tree<T> { private decode; private root; private results; private _items; constructor(decode: (value: T) => readonly unknown[]); add(input: T): void; get items(): readonly T[]; }