jack e1a2621c78 update | 2 years ago | |
---|---|---|
.. | ||
LICENSE-MIT | 2 years ago | |
README.md | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years 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.