Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.3.0/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; }