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

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

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

Get the size of the console as columns/rows, using the mode shell command.

const { columns, rows } = await consoleSizeViaMode();

Returns

Promise<ConsoleSize | undefined>