MCPcopy Create free account
hub / github.com/chainjet/platform / toKebabCase

Function toKebabCase

libs/common/src/utils/string.utils.ts:18–18  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

16 * camelCase to kebab-case
17 */
18export const toKebabCase = (str: string) => str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()
19
20export const humanize = (str: string): string => str.replace(/([a-z])([A-Z])/g, '$1 $2')
21

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected