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

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

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

Returns

Promise<ConsoleSize | undefined>