Interfaces · @purista/cli

Options

Options used for converting strings to any case.

Signature

Options.ts typescript
interface Options

Properties

6 entries

delimiter

Property

Source
delimiter.ts typescript
delimiter: string

Delimiter inserted between normalized words for delimiter-based cases.

locale

Property

Source
locale.ts typescript
locale: Locale

Locale passed to `String.prototype.toLocaleLowerCase` and `toLocaleUpperCase`.

prefixCharacters

Property

Source
prefixCharacters.ts typescript
prefixCharacters: string

Characters preserved at the beginning of the converted value.

separateNumbers

Property

Source
separateNumbers.ts typescript
separateNumbers: boolean

Enables legacy number splitting during word normalization.

split

Property

Source
split.ts typescript
split: (value: string) => string[]

Custom word splitter used before applying the requested case conversion.

suffixCharacters

Property

Source
suffixCharacters.ts typescript
suffixCharacters: string

Characters preserved at the end of the converted value.