{"name":"term-size","version":"2.2.0","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":"9ee61b4972e3f23047ddaca2aa569e7c91f6396f","bugs":{"url":"https://github.com/sindresorhus/term-size/issues"},"homepage":"https://github.com/sindresorhus/term-size#readme","_id":"term-size@2.2.0","_nodeVersion":"13.1.0","_npmVersion":"6.13.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==","shasum":"1f16adedfe9bdc18800e1776821734086fcc6753","tarball":"http://registry-npm.ywwl.com/term-size/download/term-size-2.2.0.tgz","fileCount":9,"unpackedSize":64369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMvyuCRA9TVsSAnZWagAAgtYP/A9YeFpJPYpjVQLyS3hO\nkXAU5lnYf8BAoExw25iyPTBgJYB5aEqSRD3CUMYqqJeEoggxsTkcOzznY+Rh\nfmkbVYQd5NqySRUCStuEiWhg/igsrsWwhX8GBN2F0f0sYu1wmTjWfdyMK7GM\neU0ij76trPuHRQfY155XgsXhe1w98WxvC4gHE8gFB7XRKdfH63lrxlacGsyq\nuXHE157PFdz59OG34TNoBfq29ZYFj6MJK3y+TZV+Xqdg693hbuGh1gJf1Mwx\n7aghFUd8sHkxYGR00zzRqhqYC/atRj+lAR0jXNEkFdnNtSKVuumR1gO3HMVF\nENb2fqMFNROIsPBGuPPMt/GCaMGNgLztuqO/K8NZnt2Xr3J1nxQjMw4RfcLy\neDNlx2wf0jQ3fiMpjFegP9PpgRnOENIxokPRcKlOSYdI/cP3zBVw2fS6vrsQ\nQtWfVZJ/Er0aF2KOfndUpXFvijxAIThdj9H0tmnqP1V0GdXJtSiXPLvY2nlZ\nggfC/qfRytMUW37ds0NGFpsBaqioUILvFzpR+xE46UDe5fReWcZ3q3XL3vNr\nLx+ansFyTY9MWWUcqT+IhAizHj2TrQLkGfN3Q8M39n3WAe5DSXowTUrT8IgB\nO/gUT0qeMJSmsv1wNDCXI3VHjUSP97ToWhOCZ01RaPZ7wSwZcOb0b6ucunrK\nLNzt\r\n=5w2k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKyAeL42YaieoDaToSB10g/y7ZPPNbq45OIUJcwUqbSAiEA6JwmjzFiVG4JP87GizsqSTV6bL2eJM23XC04w224LSU="}],"size":17429,"noattachment":false,"key":"/term-size/-/term-size-2.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/term-size_2.2.0_1580399789709_0.9294232361170436"},"_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":1580399789802,"_cnpm_publish_time":1580399789802,"dist-tags":{"latest":"4.0.0"}}