Skip to main content
Module

x/simple_utility/src/text.ts

Useful snippet collection.
Go to Latest
import * as simpleUtility from "https://deno.land/x/simple_utility@v0.3.1/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.

Does String.prototype.trim(), convert from \t, \r, and two or more consecutive spaces to single space.

Convert from UTF-8 binary to string.

Convert from string to UTF-8 binary.