UNPKG

@technobuddha/library

Version:
16 lines (15 loc) 437 B
/** * Convert an identifier string to a dot form * @param input - The identifier string * @returns the identifier in dot form * @group Programming * @category Variables * @example * ```typescript * dotCase('hello world'); // 'hello.world' * dotCase('HelloWorld'); // 'hello.world' * dotCase('foo_bar-baz'); // 'foo.bar.baz' * dotCase('FOO BAR'); // 'foo.bar' * ``` */ export declare function dotCase(input: string): string;