@sapphire/utilities
Version:
Common JavaScript utilities for the Sapphire Community
14 lines (12 loc) • 339 B
text/typescript
/**
* Transforms text from `snAkE_cASE` to `camelCase`.
* @param str - Text to transform
* @returns the input `st_R` as `stR`
*
* @example
* ```ts
* snakeToCamelCase('hello_world') // 'helloWorld'
* ```
*/
declare function snakeToCamelCase(str: string): string;
export { snakeToCamelCase as kebabToCamelCase, snakeToCamelCase };