{"name":"terminal-size","version":"4.0.0","keywords":["terminal","size","console","window","width","height","columns","rows","lines","tty","redirected"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"terminal-size@4.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/terminal-size#readme","bugs":{"url":"https://github.com/sindresorhus/terminal-size/issues"},"dist":{"shasum":"a0b7530518afe5f49952c58251ec6e2e3a740570","tarball":"http://registry-npm.ywwl.com/terminal-size/download/terminal-size-4.0.0.tgz","fileCount":5,"integrity":"sha512-rcdty1xZ2/BkWa4ANjWRp4JGpda2quksXIHgn5TMjNBPZfwzJIgR68DKfSYiTL+CZWowDX/sbOo5ME/FRURvYQ==","signatures":[{"sig":"MEYCIQDFDrUSyhYqE1boQ5apBs6uIvdTsLA8FWvJlXHe9NjiLQIhALtrlbv5FQx96oLD/zmj4h5fG3/BPuFHb+FxZmpnrZFb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5621,"size":2671,"noattachment":false,"key":"/terminal-size/-/terminal-size-4.0.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"e2393bccff7175e3740492b253ca967601aab22d","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/terminal-size.git","type":"git"},"_npmVersion":"9.2.0","description":"Reliably get the terminal window size (columns & rows)","directories":{},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","tsd":"^0.29.0","execa":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/terminal-size_4.0.0_1699120102709_0.38355700776842205","host":"s3://npm-registry-packages"},"readme":"# terminal-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```sh\nnpm install terminal-size\n```\n\n## Usage\n\n```js\nimport terminalSize from 'terminal-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## Related\n\n- [terminal-size-cli](https://github.com/sindresorhus/terminal-size-cli) - CLI for this module\n","publish_time":1699120102924,"_cnpm_publish_time":1699120102924,"dist-tags":{"latest":"4.0.1"}}