UNPKG

@technobuddha/library

Version:
15 lines (14 loc) 418 B
declare type Options = { /** The indentation character */ indenter?: string; }; /** * Determine the indentation level of text * * @param input The indented text * @param __namedParameters see {@link Options} * @default indenter space * @returns The minimum amount of indentation on each line */ export declare function getIndent(input: string, { indenter }?: Options): number; export default getIndent;