UNPKG

apply-multi-diff

Version:

A zero-dependency library to apply unified diffs and search-and-replace patches, with support for fuzzy matching.

11 lines (9 loc) 434 B
declare const levenshtein: (s1: string, s2: string) => number; declare const getIndent: (line: string) => string; /** * Finds the shortest leading whitespace sequence among all non-empty lines, * which represents the common base indentation for a block of text. */ declare const getCommonIndent: (text: string) => string; declare const dedent: (text: string) => string; export { dedent, getCommonIndent, getIndent, levenshtein };