tree: 27113228efd4fa37a4a1fb40bc01f86fcdf343ba [path history] [tgz]
  1. index.js
  2. LICENSE-MIT
  3. package.json
  4. README.md
node_modules/window-size/README.md

window-size NPM version

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

Install

npm

npm i window-size --save
var size = require('window-size');
size.height; // "80" (rows)
size.width; // "25" (columns)

Author

License

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