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

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.stdout

A modern runtime for JavaScript and TypeScript.
Latest
variable Deno.stdout
import { Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { stdout } = Deno;

A reference to stdout which can be used to write directly to stdout. It implements the Deno specific Writer, WriterSync, and Closer interfaces as well as provides a WritableStream interface.

These are low level constructs, and the console interface is a more straight forward way to interact with stdout and stderr.

type

{ readonly writable: WritableStream<Uint8Array>; write(p: Uint8Array): Promise<number>; writeSync(p: Uint8Array): number; close(): void; isTerminal(): boolean; }