UNPKG

codetrix

Version:

A lightweight lodash-style utility library

11 lines (10 loc) 246 B
/** * Converts a string to snake_case format. * * @param str - The string to convert. * @returns The snake_cased string. * * @example * snakeCase('Hello World'); // 'hello_world' */ export declare function snakeCase(str: string): string;