Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dxx/src/lib/consoleSize.ts>consoleSizeViaDenoAPI

🚀 (Deno) enhanced executor
Latest
function consoleSizeViaDenoAPI
Unstable
import { consoleSizeViaDenoAPI } from "https://deno.land/x/dxx@rf/src/lib/consoleSize.ts";

Get the size of the console used by rid as columns/rows, using options, via the Deno API.

  • unstable ~ requires the Deno --unstable flag for successful resolution (b/c the used Deno.consoleSize() function is unstable API [as of Deno v1.19.0, 2022-02-17])
const { columns, rows } = consoleSizeViaDenoAPI(Deno.stdout.rid, {...});

Parameters

optional
rid: number = [UNSUPPORTED]

~ resource ID

optional
options_: Partial<Omit<ConsoleSizeOptions, "useCache">> = [UNSUPPORTED]

Returns

ConsoleSize | undefined