Battledash-2 / TSize

Efficiently get the terminal size. (Info: if the terminal size is not available, it will assume the terminal is 'read-only' and give Infinity)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TSize

Efficiently get the terminal size. (Info: if the terminal size is not available, it will assume the terminal is 'read-only' and give Infinity)

Usage:

const tsize = require('tsize');

const size = tsize.size();
console.log('The terminal is ',
					size.width, ' in width and',
					size.height, ' in height.');

About

Efficiently get the terminal size. (Info: if the terminal size is not available, it will assume the terminal is 'read-only' and give Infinity)

License:MIT License


Languages

Language:JavaScript 100.0%