UNPKG

650 BJavaScriptView Raw
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'use strict';
9
10var define = require('define-property');
11var utils = require('./utils');
12
13/**
14 * Expose `windowSize`
15 */
16
17module.exports = utils.get();
18
19if (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