(self: string): stringConverts a string to snake_case (lowercase with underscores).
When to use
Use to normalize mixed-case or separator-delimited text into lowercase words joined with underscores.
Source effect/String.ts:14413 lines
export const const snakeCase: (self: string) => stringConverts a string to snake_case (lowercase with underscores).
When to use
Use to normalize mixed-case or separator-delimited text into lowercase words
joined with underscores.
snakeCase: (self: stringself: string) => string = const noCase: (options?: {
readonly splitRegExp?: RegExp | ReadonlyArray<RegExp> | undefined;
readonly stripRegExp?: RegExp | ReadonlyArray<RegExp> | undefined;
readonly delimiter?: string | undefined;
readonly transform?: (part: string, index: number, parts: ReadonlyArray<string>) => string;
}) => (self: string) => string (+1 overload)
noCase({
delimiter?: string | undefineddelimiter: "_"
})