Skip to content

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

Notifications You must be signed in to change notification settings

Battledash-2/TSize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published