root 3bf41bf355 update | 1 year ago | |
---|---|---|
.. | ||
LICENSE-MIT | 1 year ago | |
README.md | 1 year ago | |
index.js | 1 year ago | |
package.json | 1 year ago |
Reliable way to to get the height and width of the terminal/console in a node.js environment.
npm i window-size --save
var size = require('window-size');
size.height; // "80" (rows)
size.width; // "25" (columns)
Copyright (c) 2014 Jon Schlinkert Licensed under the MIT license.