@technobuddha/library
Version:
A large library of useful functions
15 lines (14 loc) • 418 B
TypeScript
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;