clean-jsdoc-theme TypeDoc APIv0.0.0

kebabCase

kebabCase(str: string): string

Source: string.ts:66

Converts a string to kebab-case

Parameters

  • str (string) — The input string

Returns

  • string — kebab-cased string

Example

CODE
kebabCase('helloWorld') // 'hello-world'
kebabCase('HelloWorld') // 'hello-world'
kebabCase('hello_world') // 'hello-world'