{"name":"term-size","version":"0.1.0","description":"Reliably get the terminal window size","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/term-size.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js","win-term-size.exe"],"keywords":["term","terminal","size","console","window","width","height","columns","rows","lines","tty"],"dependencies":{"execa":"^0.4.0"},"devDependencies":{"ava":"*","execa":"^0.4.0","xo":"*"},"xo":{"esnext":true},"gitHead":"c9eaf438567ea0ce8161ba2a2586ac902ccf740d","bugs":{"url":"https://github.com/sindresorhus/term-size/issues"},"homepage":"https://github.com/sindresorhus/term-size#readme","_id":"term-size@0.1.0","_shasum":"38b2ef34b5785b0a33c6b95129168cff3afa258e","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"38b2ef34b5785b0a33c6b95129168cff3afa258e","tarball":"http://registry-npm.ywwl.com/term-size/download/term-size-0.1.0.tgz","integrity":"sha512-K0m1pwRCvku6CmQfm5YZc3eXjRfhNM+/glQ6a+x/ojpiKKhzyXliOy1KupG3Zpnq0bD4Qdu0PkJK2iKCqwUPPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDDESsQlI+YEah2vGghujXH8L7PNp6cWUPgcemH5ynkAIgeqNLj+QuV3x8kVCV2iMHGjNSq3dVXrsIm/lc94tqkd8="}],"size":8983,"noattachment":false,"key":"/term-size/-/term-size-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/term-size-0.1.0.tgz_1473438671878_0.42103623040020466"},"directories":{},"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":1473438672110,"_cnpm_publish_time":1473438672110,"dist-tags":{"latest":"4.0.0"}}