Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

README.md 1.7 KiB

3 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # window-size [![NPM version](https://badge.fury.io/js/window-size.svg)](http://badge.fury.io/js/window-size) [![Build Status](https://travis-ci.org/jonschlinkert/window-size.svg)](https://travis-ci.org/jonschlinkert/window-size)
  2. > Reliable way to to get the height and width of the terminal/console in a node.js environment.
  3. ## Install
  4. Install with [npm](https://www.npmjs.com/)
  5. ```sh
  6. $ npm i window-size --save
  7. ```
  8. ## Usage
  9. ```js
  10. var size = require('window-size');
  11. size.height; // "25" (rows)
  12. size.width; // "80" (columns)
  13. ```
  14. ## Other projects
  15. * [base-cli](https://www.npmjs.com/package/base-cli): Plugin for base-methods that maps built-in methods to CLI args (also supports methods from a… [more](https://www.npmjs.com/package/base-cli) | [homepage](https://github.com/jonschlinkert/base-cli)
  16. * [lint-deps](https://www.npmjs.com/package/lint-deps): CLI tool that tells you when dependencies are missing from package.json and offers you a… [more](https://www.npmjs.com/package/lint-deps) | [homepage](https://github.com/jonschlinkert/lint-deps)
  17. * [yargs](https://www.npmjs.com/package/yargs): Light-weight option parsing with an argv hash. No optstrings attached. | [homepage](https://github.com/bcoe/yargs#readme)
  18. ## Contributing
  19. Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/window-size/issues/new).
  20. ## Author
  21. **Jon Schlinkert**
  22. + [github/jonschlinkert](https://github.com/jonschlinkert)
  23. + [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
  24. ## License
  25. Copyright © 2014-2015 [Jon Schlinkert](https://github.com/jonschlinkert)
  26. Released under the MIT license.
  27. ***
  28. _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 15, 2015._