Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_utility/src/pure/text.ts

Simplify processing for Deno.
Latest
import * as simpleUtility from "https://deno.land/x/simple_utility@v2.3.2/src/pure/text.ts";

Functions

Convert from encoded binary to string.

Convert from string to UTF-8 binary.

Convert half-width string (ex: Japanese Kana) to full-width and full-width alphanumeric symbols to half-width.

Combined textFixWidth() and textPurgeSuperfluous().

Convert from hex string to binary.

Convert from binary to hex string.

Create string with zero padding at beginning of number. Output is 2 digits by default.

Trim head and tail blank, remove CR and consecutive space, tab, LF to single space, tab, LF.

Accurately recognize string that contain character above 0x010000 and array them one by character. Useful for calculate number of characters with string contains emoji.