Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/tui/src/utils/strings.ts

🦕 Deno module for creating Terminal User Interfaces
Latest
import * as tui from "https://deno.land/x/tui@2.1.11/src/utils/strings.ts";

Variables

Regexp that allows for extracting unicode sequences that are supposed to represent single character

Functions

Returns capitalized string created from {text}

Return width of given character

Crops {text} to given {width}

Converts given text to array of strings which consist of sequences which represent a single character

Inserts {value} into {string} on given {index}

Strips string of all its styles

Returns real {text} width