Skip to main content
Module

std/encoding/utf8.ts>encode

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function encode
import { encode } from "https://deno.land/std@v0.56.0/encoding/utf8.ts";

Shorthand for new TextEncoder().encode()

Parameters

optional
input: string

Returns

Uint8Array