Module

std/strings/mod.ts>encode

Deno standard library
Go to Latest
function encode
import { encode } from "https://dotland.deno.dev/std@0.36.0/strings/mod.ts";

Shorthand for new TextEncoder().encode()

Parameters

optional
input: string

Returns

Uint8Array