Skip to content

@kaelyx/ts-kit / string / ConvertCaseDigits

Variable: ConvertCaseDigits ​

const ConvertCaseDigits: object

Defined in: string/convert-case/convert-case.types.ts:85

Which word the digits go into when convertCase reads the input. For ConvertCaseOptions.digits.

Type Declaration ​

left ​

readonly left: "left" = 'left'

Digits stay with the letters before them. A capital after the digits starts a new word: 'base64Encode' gives base64 and Encode.

readonly right: "right" = 'right'

Digits start a new word, with the letters after them: 'base64Encode' gives base and 64Encode.

separate ​

readonly separate: "separate" = 'separate'

Digits are a word of their own: 'base64Encode' gives base, 64 and Encode.