Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.consoleSize

UNSTABLE: New API, yet to be vetted.

Gets the size of the console as columns/rows.

const { columns, rows } = Deno.consoleSize(Deno.stdout.rid);
function consoleSize(rid: number): {
columns: number;
rows: number;
}
;
§
consoleSize(rid: number): {
columns: number;
rows: number;
}
[src]

§Parameters

§
rid: number
[src]

§Return Type

§
{
columns: number;
rows: number;
}
[src]