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

x/simple_utility/src/text.ts

Useful snippet collection.
Go to Latest
import * as simpleUtility from "https://deno.land/x/simple_utility@v1.0.0/src/text.ts";

Functions

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

Convert from hex string to binary.

Convert from binary to hex string.

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

Convert from UTF-8 binary to string.

Convert from string to UTF-8 binary.