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

x/png_mimic/deps.ts>textEncode

Mimic any binary to PNG.
Latest
function textEncode
Re-export
import { textEncode } from "https://deno.land/x/png_mimic@v1.0.3/deps.ts";

Convert from string to UTF-8 binary.

Examples

Example 1

const text = "HelloWorld!";
const encode = textEncode(text);
const decode = textDecode(encode);

Parameters

data: string

Returns

Uint8Array