UNPKG

string-extract-class-names

Version:

Extracts CSS class/id names from a string

18 lines (15 loc) 389 B
type Range = | [from: number, to: number] | [from: number, to: number, whatToInsert: string | null | undefined]; type Ranges = Range[] | null; declare const version: string; interface Result { res: string[]; ranges: Ranges; } /** * Extracts CSS class/id names from a string */ declare function extract(str: string): Result; export { extract, version }; export type { Result };