(self: string): stringConverts a string to kebab-case (lowercase with hyphens).
When to use
Use to normalize free-form labels, identifiers, or keys into lowercase hyphen-separated text.
Source effect/String.ts:14223 lines
export const const kebabCase: (self: string) => stringConverts a string to kebab-case (lowercase with hyphens).
When to use
Use to normalize free-form labels, identifiers, or keys into lowercase
hyphen-separated text.
kebabCase: (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: "-"
})