Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function $consoleSize.consoleSizeViaPowerShell
import { $consoleSize } from "https://deno.land/x/dxx@rf/src/lib/$locals.ts";
const { consoleSizeViaPowerShell } = $consoleSize;

Get the size of the console as columns/rows, using PowerShell.

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

Returns

Promise<ConsoleSize | undefined>