{"name":"term-size","version":"2.1.1","description":"Reliably get the terminal window size (columns & rows)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/term-size.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","size","console","window","width","height","columns","rows","lines","tty","redirected"],"devDependencies":{"ava":"^2.4.0","execa":"^3.4.0","tsd":"^0.11.0","xo":"^0.25.3"},"gitHead":"79d5097c696d49a42899f6dcd79333b043cf536e","bugs":{"url":"https://github.com/sindresorhus/term-size/issues"},"homepage":"https://github.com/sindresorhus/term-size#readme","_id":"term-size@2.1.1","_nodeVersion":"10.17.0","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-UqvQSch04R+69g4RDhrslmGvGL3ucDRX/U+snYW0Mab4uCAyKSndUksaoqlJ81QKSpRnIsuOYQCbC2ZWx2896A==","shasum":"f81ec25854af91a480d2f9d0c77ffcb26594ed1a","tarball":"http://registry-npm.ywwl.com/term-size/download/term-size-2.1.1.tgz","fileCount":9,"unpackedSize":45806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+mN2CRA9TVsSAnZWagAAjZIP/1U0+IX+3BOh31Kxp6UD\nKyCxqNEIpS1Uufgbsr6TRBfQU1HDyT1BIhgHcB30Svjfo7hBnU1see8M0I2c\nWMTnk8522+4xKUsyhG+UBXJyf0uiByLwaJtb/Q68eo3nLFTCkxnqUQGPK8g4\nRYD7Tyr8Ydq70qfDuQnYNtTVOBp/jYmxqN4B0sFdMszlwgSBWz0b7YMtEVNu\nCJdZw0F9kOqhlT5uV7oCuf2mC6CuNJgvlaMZO2Lqdfyww7Lv96649HO6PfJO\nkvOyrvrZSYjveQd5TBnzVWCrA8mxJnPUkCdHCMgQhNmQI9g9XPLuv7b3ayW/\nJSsdhExeSjIk82EhrsGNhq/ABSJ+SACtm85IZZ2FFvvoUbzxtRC6L+UQx5dx\n+AT/011A7OzcDEQNA9ZpkjHY0IEWJ8PsvK5k5o0SgwSnFcZe9Xh8CGHCG5yU\nnZcELAyxgeiZipH8bbiea5bjOsLB81lZ77sK5IVBDS4/VMtFLn1cX2T4mQVh\nDIjOqGOxj+TMociu5TtrHZrcFX7+VVe2gUbcI3SDvzecQBOSF5Ll3Q9OI7LR\nbBVxc1FlcTnG3xh6oq5ZbRjo8W33wlCgBW8sXf477bpftozRqsIsXqvWk+1A\nGNq2zHm8xqTzEtxFh/VoWoyEvSfw9bR6B69V33dwB1NRdYYcy+/qunWpzQEh\n08to\r\n=Q33Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFx4JwfEZPvtX6ucyhpu6acA2OzNOXHJ4xlZfeqWtinAIgctDubePNmry4/cgSilXc6v8Vp/BXuXTuoD7At/9jzy4="}],"size":11856,"noattachment":false,"key":"/term-size/-/term-size-2.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/term-size_2.1.1_1576690549967_0.26106866663640393"},"_hasShrinkwrap":false,"readme":"# term-size\n\n> Reliably get the terminal window size\n\nBecause [`process.stdout.columns`](https://nodejs.org/api/tty.html#tty_writestream_columns) doesn't exist when run [non-interactively](http://www.tldp.org/LDP/abs/html/intandnonint.html), for example, in a child process or when piped. This module even works when all the TTY file descriptors are redirected!\n\nConfirmed working on macOS, Linux, and Windows.\n\n## Install\n\n```\n$ npm install term-size\n```\n\n## Usage\n\n```js\nimport terminalSize from 'term-size';\n\nterminalSize();\n//=> {columns: 143, rows: 24}\n```\n\n## API\n\n### terminalSize()\n\nReturns an `object` with `columns` and `rows` properties.\n\n## Info\n\nThe bundled macOS binary is signed and hardened.\n\n## Related\n\n- [term-size-cli](https://github.com/sindresorhus/term-size-cli) - CLI for this module\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-term-size?utm_source=npm-term-size&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1576690550162,"_cnpm_publish_time":1576690550162,"dist-tags":{"latest":"4.0.0"}}