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

x/xdg/vendor/types/deno.d.ts>TextEncoder

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
class TextEncoder
import { TextEncoder } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.d.ts";

Properties

readonly
encoding: string

Returns "utf-8".

readonly
[Symbol.toStringTag]: string

Methods

encode(input?: string): Uint8Array

Returns the result of running UTF-8's encoder.

encodeInto(input: string, dest: Uint8Array): { read: number; written: number; }