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

x/ayonli_jsext/cli.ts>getWindowSize

A JavaScript extension package for building strong and modern applications.
Latest
function getWindowSize
import { getWindowSize } from "https://deno.land/x/ayonli_jsext@v0.9.72/cli.ts";

Returns the current size of the application window.

In the terminal, this is the size of the terminal window, where width and height are the corresponding columns and rows.

In the browser, this is the size of the viewport, where width and height are measured in pixels.

Returns

{ width: number; height: number; }