Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 363 Bytes

kebab-case.md

File metadata and controls

20 lines (14 loc) · 363 Bytes
category
String Operation

KebabCase

Replace the camelCase or PascalCase string with kebab-case.

Usage

import type { KebabCase } from '@utype/core'

// Expect: "foo-bar-baz"
type FooBarBaz = KebabCase<"fooBarBaz">
// Expect: "foo-bar-baz"
type FooBarBaz2 = KebabCase<"FooBarBaz">