hexo/node_modules/window-size
jkjoy 9a9cb42f53 20231003 update 2023-10-03 11:14:36 +08:00
..
LICENSE-MIT 20230925 2023-09-25 15:58:56 +08:00
README.md 20230925 2023-09-25 15:58:56 +08:00
index.js 20230925 2023-09-25 15:58:56 +08:00
package.json 20231003 update 2023-10-03 11:14:36 +08:00

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.