arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

window-size

Reliable way to to get the height and width of the terminal/console in a node.js environment.

hashtag
Install

hashtag

hashtag
Author

hashtag
License

Copyright (c) 2014 Jon Schlinkert Licensed under the MIT license.

npmarrow-up-right
github/jonschlinkertarrow-up-right
twitter/jonschlinkertarrow-up-right
npm i window-size --save
var size = require('window-size');
size.height; // "80" (rows)
size.width; // "25" (columns)