{"name":"term-size","version":"3.0.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":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","size","console","window","width","height","columns","rows","lines","tty","redirected"],"devDependencies":{"ava":"^3.15.0","execa":"^5.1.1","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"81581b02d6afe4a8310228137859225f4e2ac77d","bugs":{"url":"https://github.com/sindresorhus/term-size/issues"},"homepage":"https://github.com/sindresorhus/term-size#readme","_id":"term-size@3.0.0","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"integrity":"sha512-djz8Mao5rNsnC6o5AcEClJkiVdwkHTA/PrHjd5mI4JU9AsFh6iog9yhqxim17HkuJnMHtLu7lL8Jfa1kiihW5g==","shasum":"07b1f279b30df60dc1baf97cc1b88a78d525c679","tarball":"http://registry-npm.ywwl.com/term-size/download/term-size-3.0.0.tgz","fileCount":7,"unpackedSize":50084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHFOxCRA9TVsSAnZWagAApckP/iFXLoM+Xq6dYc9yrPfQ\n94/9FDiqyrMtcneJnoEWCdvr3FJZhcflGBEjsUiryKTLeLr4VIdXg7OrTiRq\nTAXhZwgAvh0UznwPFBzVKP8URhqdDDYtaAZ85EwvSymEzNjW7pYd11KbkMMe\nrPZAFz47gs5nub+jyK1w/nNuhxocoLZqrI6zKlOxEZL39sgtqtkk0ay0wstr\nd9H3Gp3AJfM4DCg9MgW8PpW9/Bf36LsRPH7TV8P9XkAk5Da9zAZluXDscnSg\nup445ye8fUOHOjKOFV3QL7+WVkFAtSJRNpaQkZPBts98ldY6bNhMlMgGpB0K\na/6BjeACuev+wxOeKSsc25hpgA+/PbbLOEMl+o8d/mEHTno/puY38H2fkrqf\nhAUI1v1Bjtm23nXs/6ZHKN25wusjgLSWKhFEesDpkC3ginz/DpquOkeW2Ee7\ns7Ee1bWocgrNSTxq3erGUz+RKqmzZAbyTvGbfy445X9p1q/BhO1NLSGOOXWg\n1p7508bLMWEHB4p8/V7jjgzmLjWoHqcaJ42QrfpaKkyWzWmud3/8zsI6Wv8M\nQyOc675EhLEZm+KdkEPi4P9MhBD3Z2XNyzYUbLOH0lkkjE+EmOQaE1LM//FA\nonHFBxNP2T2LN3hBVIhj4GUZvat1nPgxk4HuUL13f/sXhIXzNn94wSC9+xa1\nopp3\r\n=U3CB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC09wWa2hCxOtmPBfJ01tzN0hJEmk373FwI1gBDGikgSgIhAOvVEzWYJS21zokNZopVF/AvgoNRzt3tc9T8mFjQrvwD"}],"size":16032,"noattachment":false,"key":"/term-size/-/term-size-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/term-size_3.0.0_1629246385721_0.8005700005568965"},"_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":1629246385842,"_cnpm_publish_time":1629246385842,"dist-tags":{"latest":"4.0.0"}}