Skip to content
On this page

toKebab

Converts a camel case string to kebab case.

Usage

ts
import { toKebab } from '@screaming/utils'

toKebab('ribbitRibbit')
// 'ribbit-ribbit'
1
2
3
4

Type Definitions

ts
/**
 *
 *
 * @param str - The camel case string.
 * @returns The kebab case string.
 */
export declare function toKebab(str: string): string
1
2
3
4
5
6
7