Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/strings/mod.ts>encode

A modern runtime for JavaScript and TypeScript.
Go to Latest
function encode
import { encode } from "https://deno.land/x/deno@v0.22.0/std/strings/mod.ts";

Shorthand for new TextEncoder().encode()

Parameters

optional
input: string

Returns

Uint8Array