UNPKG

string-remove-duplicate-heads-tails

Version:

Detect and (recursively) remove head and tail wrappings around the input string

15 lines (13 loc) 349 B
declare const version: string; interface Opts { heads: string[]; tails: string[]; } interface LenientOpts { heads: string | string[]; tails: string | string[]; } declare const defaults: Opts; declare function remDup(str: string, opts?: Partial<LenientOpts>): string; export { defaults, remDup, version }; export type { LenientOpts, Opts };