MCPcopy
hub / github.com/fengyuanchen/cropperjs / toKebabCase

Function toKebabCase

packages/utils/src/functions.ts:100–102  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

98 * @returns {string} Returns the transformed value.
99 */
100export function toKebabCase(value: string): string {
101 return String(value).replace(REGEXP_CAMEL_CASE, '$1-$2').toLowerCase();
102}
103
104const REGEXP_KEBAB_CASE = /-[A-z\d]/g;
105

Callers 3

index.spec.tsFile · 0.90
$defineMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…