Module: runtime/mci/text-styles
Text Styles
Summary
ENiGMA-inspired text transformations (l33t, title, upper, etc.)
Table of contents
Classes
Type Aliases
Variables
Functions
- applyTextStyle
- getTextStyle
- isValidTextStyle
- listTextStyles
- styleAlternating
- styleBigVowels
- styleFirstLower
- styleL33t
- styleLower
- styleMixed
- styleNormal
- styleReverse
- styleSmallI
- styleSmallVowels
- styleTitle
- styleUpper
- styleWave
Type Aliases
TextStyleFunction
Ƭ TextStyleFunction: (text: string) => string
Type declaration
▸ (text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:22
TextStyleName
Ƭ TextStyleName: "normal" | "upper" | "lower" | "title" | "firstLower" | "smallVowels" | "bigVowels" | "smallI" | "mixed" | "l33t" | "reverse" | "alternating" | "wave"
Defined in
Variables
TEXT_STYLES
• Const TEXT_STYLES: Record<TextStyleName, TextStyleFunction>
Defined in
core/src/mci/text-styles.ts:160
Functions
applyTextStyle
▸ applyTextStyle(text, styleName): string
Parameters
| Name | Type |
|---|---|
text |
string |
styleName |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:224
getTextStyle
▸ getTextStyle(name): TextStyleFunction | undefined
Parameters
| Name | Type |
|---|---|
name |
string |
Returns
TextStyleFunction | undefined
Defined in
core/src/mci/text-styles.ts:210
isValidTextStyle
▸ isValidTextStyle(name): boolean
Parameters
| Name | Type |
|---|---|
name |
string |
Returns
boolean
Defined in
core/src/mci/text-styles.ts:236
listTextStyles
▸ listTextStyles(): TextStyleName[]
Returns
Defined in
core/src/mci/text-styles.ts:232
styleAlternating
▸ styleAlternating(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:131
styleBigVowels
▸ styleBigVowels(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:83
styleFirstLower
▸ styleFirstLower(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:65
styleL33t
▸ styleL33t(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:119
styleLower
▸ styleLower(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:55
styleMixed
▸ styleMixed(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:107
styleNormal
▸ styleNormal(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:47
styleReverse
▸ styleReverse(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:127
styleSmallI
▸ styleSmallI(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:95
styleSmallVowels
▸ styleSmallVowels(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:71
styleTitle
▸ styleTitle(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:59
styleUpper
▸ styleUpper(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string
Defined in
core/src/mci/text-styles.ts:51
styleWave
▸ styleWave(text): string
Parameters
| Name | Type |
|---|---|
text |
string |
Returns
string