1 | /*!
|
2 | * window-size <https://github.com/jonschlinkert/window-size>
|
3 | *
|
4 | * Copyright (c) 2014-2017, Jon Schlinkert.
|
5 | * Released under the MIT License.
|
6 | */
|
7 |
|
8 | ;
|
9 |
|
10 | var define = require('define-property');
|
11 | var utils = require('./utils');
|
12 |
|
13 | /**
|
14 | * Expose `windowSize`
|
15 | */
|
16 |
|
17 | module.exports = utils.get();
|
18 |
|
19 | if (module.exports) {
|
20 | /**
|
21 | * Expose `windowSize.get` method
|
22 | */
|
23 |
|
24 | define(module.exports, 'get', utils.get);
|
25 |
|
26 | /**
|
27 | * Expose methods for unit tests
|
28 | */
|
29 |
|
30 | define(module.exports, 'env', utils.env);
|
31 | define(module.exports, 'tty', utils.tty);
|
32 | define(module.exports, 'tput', utils.tput);
|
33 | define(module.exports, 'win', utils.win);
|
34 | }
|
35 |
|