Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 599 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 599 Bytes

window-size NPM version

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

Install

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.