{"name":"term-size","version":"3.0.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":"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":"832f2b62a70a8adc79ef44bac8c0c3cfa36a1e5d","bugs":{"url":"https://github.com/sindresorhus/term-size/issues"},"homepage":"https://github.com/sindresorhus/term-size#readme","_id":"term-size@3.0.1","_nodeVersion":"16.10.0","_npmVersion":"7.20.3","dist":{"integrity":"sha512-2qG/4EwrpUQcNlEqsnAfgqBaKdNGOzLUyGV/7bai/cvEASTYPunua73HkOGeZH3A+tfWcQiJ8iAa13D7tHJk6g==","shasum":"a2406b350e32b30e55f9878b55dfa10a27d7b712","tarball":"http://registry-npm.ywwl.com/term-size/download/term-size-3.0.1.tgz","fileCount":7,"unpackedSize":50122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh29C8CRA9TVsSAnZWagAApQMP/0pw8n1dEHMnmGOnECf9\nvgwGhyKuhGoJU4KIufUVUTDhN2eOWEwEgCFaxyj78cF+81+Z82r7xRlX1f/T\nKHOhSHtEPL0SzTF8RS2SStihVb36lS16TylF3dtamOGwToBuudZMl+TNlh/s\nMGgHgB2pMyNfcxonbGZS5bZLzLfMZlxgMW99TKr5QvSoScIueqa5DIxcVddP\nRije8cLSXc2ffiCYHIYLO+gk4ngJiXshpqPi6Ri1g5sPCCTHSncPgP2+lTgc\nnoVxlaU1qoZ9ZUk6FfOcHq5SuzBPjrhAvV/dmL+rJbxN7iE70UXDQtxQkHZ1\nSmrPcsDagwUb2vODh6gRP9jnpLGn0Nv8QI/Vr+PXG9aJf+lgxHbBCGRuP2ET\nu0m+nhgjLY+soLe9FDDMDORHJ76/yuFdvjnnWnSwhuC2rmNPZU3GgZIrvHTi\nsxrbaFdjFVUH2Y7jpZan+hOHoslEG8dXe3AWxJseOybPEshf/9e+KufdBd2g\nOBWSI/SaqPosiA/saJrdNSkf+ivKMozXHbLgVlP2RKvngBeSPPpz78VngCwi\nchEWeexcu7DurHLIb9I/cav064s77+XBYty94sQ1isL36HYBcn6SDSaa7u2w\nZ5M41D2RbeB7trY9ZmgfoCJomIRGA9oAQuMCQg25BVHVF1amsbTaKYdR6wlp\nlmkX\r\n=AXS4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE2u+FcsA9Gu4Z5E6UT1WkuZWqSt9y+9lT1YQO+zttUWAiEApfjSgU1rRCNBRUE71PHVjGcEQCzODjuavfkbyfM3w7c="}],"size":16057,"noattachment":false,"key":"/term-size/-/term-size-3.0.1.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.1_1633600713971_0.6191442286424771"},"_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":1633600714120,"_cnpm_publish_time":1633600714120,"dist-tags":{"latest":"4.0.0"}}