UNPKG

html-to-md

Version:

A JS library for convert HTML<String> to markdown<String>, gzip 10kb

9 lines (8 loc) 275 B
declare type TrimType = 'whitespace' | 'linebreak' | 'all'; declare type OriType = 'left' | 'right' | 'all'; declare type TrimOptions = { type?: TrimType; ori?: OriType; }; declare function trim(str: string, { type, ori }?: TrimOptions): string; export default trim;