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