MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / snakeToKebab

Function snakeToKebab

packages/extension/utils/string.ts:11–13  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

9}
10
11export function snakeToKebab(str: string) {
12 return str.replace(/_/g, '-').toLowerCase()
13}
14
15export function toPascalCase(str: string) {
16 return str.replace(/(^\w|-+\w|_+\w|\s+\w)/g, (match) =>

Callers 1

string.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected