{"name":"terminal-size","version":"4.0.1","description":"Reliably get the terminal window size (columns & rows)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-size.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","size","console","window","width","height","columns","rows","lines","tty","redirected"],"devDependencies":{"ava":"^5.3.1","execa":"^8.0.1","tsd":"^0.29.0","xo":"^0.56.0"},"gitHead":"0cbd793b9a0d3f81d85970fb3d3815c25c029435","types":"./index.d.ts","_id":"terminal-size@4.0.1","bugs":{"url":"https://github.com/sindresorhus/terminal-size/issues"},"homepage":"https://github.com/sindresorhus/terminal-size#readme","_nodeVersion":"25.3.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-avMLDQpUI9I5XFrklECw1ZEUPJhqzcwSWsyyI8blhRLT+8N1jLJWLWWYQpB2q2xthq8xDvjZPISVh53T/+CLYQ==","shasum":"4fe8cb7482aae253f042bcd0c67b61f2dde97901","tarball":"http://registry-npm.ywwl.com/terminal-size/download/terminal-size-4.0.1.tgz","fileCount":5,"unpackedSize":6461,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC4NAlk4U3/JHvnX1jJuUa5rQk2zSH+guCwEy/IL6XJ+AIgSDMfkng0xqePmWHa6sN+MFQ57GbNT/el0DS1JvaDFwA="}],"size":2924,"noattachment":false,"key":"/terminal-size/-/terminal-size-4.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/terminal-size_4.0.1_1770009806064_0.38460371924160697"},"_hasShrinkwrap":false,"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":1770009806211,"_cnpm_publish_time":1770009806211,"dist-tags":{"latest":"4.0.1"}}