2a09d1a4
liuqimichale
添加宜春 天水 宣化
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# window-size [](http://badge.fury.io/js/window-size)
> Reliable way to to get the height and width of the terminal/console in a node.js environment.
## Install
### [npm](npmjs.org)
```bash
npm i window-size --save
```
```javascript
var size = require('window-size');
size.height; // "80" (rows)
size.width; // "25" (columns)
```
## Author
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
## License
Copyright (c) 2014 Jon Schlinkert
Licensed under the MIT license.
|