0.1.0
Rust bindings in Deno to determine the size of the terminal
Attributes
Includes Deno configuration
Repository
Current version released
4 years ago
Dependencies
deno.land/x
Versions
Deno Terminal Size
Get the size of the terminal in Deno. Useful for CLI apps written for the Deno runtime.
Usage
Include the library, and utilize either the getHeight, getWidth or getSize
function to determine the size of the terminal.
import {
getHeight,
getSize,
getWidth,
} from 'https://deno.land/x/terminal_size/mod.ts';
const size = getSize();
const height = getHeight();
const width = getWidth();Sponsorship
Brought to you by Shenanigans.