{"name":"term-size","version":"3.0.2","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"},"types":"./index.d.ts","gitHead":"fe7631b301d2e1cb89139dd9dcf5c3c0de88ef18","bugs":{"url":"https://github.com/sindresorhus/term-size/issues"},"homepage":"https://github.com/sindresorhus/term-size#readme","_id":"term-size@3.0.2","_nodeVersion":"16.15.0","_npmVersion":"8.3.2","dist":{"integrity":"sha512-YfE8KwjrumviCxmeOS1r1hAwqUcd/AnhrG/Pol/Gry91EyUCS+jQH0qFUZOUkpGQ5rXsKMK6S6kjne53ytYS/w==","shasum":"bee88ca0afb8abbd423d698daac747f68aff5009","tarball":"http://registry-npm.ywwl.com/term-size/download/term-size-3.0.2.tgz","fileCount":7,"unpackedSize":50175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEqfDM3iEeRxDHJqy75Ftmt74vUGsL1FnHuFOMxzCS9AiEA8fuyoClOyiHCOUVpV/RhpKYqq1zeBM4/yPKN/MtkXew="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijLisACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZeg//cbdTeMX0EbIq69bUMetG3Q3gRDvrHye7nPm+mMeSbdX0EWkt\r\nxtJpA8JiNzN2/ZeWXvE6PrlCqUIRm1LmMF82KXtoo7h+oWf88/S1aGsPcD1G\r\n7qbJu2bt38LGFZ1uncrB0MfwyjNqEEa5lB2k6AAjOqq5GgYOZOf4MsKz185g\r\naIRVNlC+S5MteYm4v9yfOssNcuRewluUKBVFEVkzo5llkPIiV7gN98iuhSZD\r\nVgvGRUxZ+5I35e5jgb2C4A+Ny/qqjTbmyhrvOHhCyYi18tz4bN80V1yCHd1L\r\nAHTiy5rj/cwM1JIpaKTBQWgcNyf0J4NZvQ8BEDRJOjnOPzIHYG8DLSnSMTDu\r\nKcyeW2SJIbB2Z4oOqlmhnu3wBB9WZJCoYVGdxwlJTr65SvPaD2wNy7ybr9+O\r\n02i7nyJDwqhqIQBAW8+99e9ATI5btEqZkUKapRsqnGS7WqzDzCKDJ+N0nTHn\r\nkY3sZO8i1x8RKeURAOpwsFT7yIqf26FqEG8KuI/gHn2ZG+s/KcvtqcpKpxwa\r\nj5vybp908xRMfQK9PsMQMQ0kVyWvJpXhmg3nIS8c/IiprVz3GRsQnbUotziL\r\ntUnwAvF06wrZheASIWBV+La1c1fXeRQmYIuT/VJ6XAR3LBwOAGei8E3JWgmi\r\nWJf7C+Q8o0/xbzxdpLb08knazxvlYmMdOSo=\r\n=wOQw\r\n-----END PGP SIGNATURE-----\r\n","size":16088,"noattachment":false,"key":"/term-size/-/term-size-3.0.2.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.2_1653389483815_0.28827930989579653"},"_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":1653389483982,"_cnpm_publish_time":1653389483982,"dist-tags":{"latest":"4.0.0"}}