{"name":"term-size","version":"2.1.0","description":"Reliably get the terminal window size (columns & rows)","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":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","size","console","window","width","height","columns","rows","lines","tty","redirected"],"devDependencies":{"ava":"^1.4.1","execa":"^1.0.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"c676a8973fda2ec82e9f2781b5f59d3be5fc71d8","bugs":{"url":"https://github.com/sindresorhus/term-size/issues"},"homepage":"https://github.com/sindresorhus/term-size#readme","_id":"term-size@2.1.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-I42EWhJ+2aeNQawGx1VtpO0DFI9YcfuvAMNIdKyf/6sRbHJ4P+ZQ/zIT87tE+ln1ymAGcCJds4dolfSAS0AcNg==","shasum":"3aec444c07a7cf936e157c1dc224b590c3c7eef2","tarball":"http://registry-npm.ywwl.com/term-size/download/term-size-2.1.0.tgz","fileCount":9,"unpackedSize":45343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6S9iCRA9TVsSAnZWagAATdIQAJx5oVlvrLbI2w+Jrmzh\nHqOa54BqFze4Bkw6C+mzsptApThpWyuZhfBiMkmyF1c4wAPhkrVnr838mvla\n8V/ItSMvTLBXPO3r+cxGfcugeTMueEY2b52ofU3p0ByuwmRuAhrZGNtHcBwO\nksMaL34vx/wouQNWRZOy5cU9b5nVUnZLk+9BPzJkvtQ/VYKnCGScarHxqa6y\nBzOnrZOh0rpLAnGLcWBA4nghP6pyj82wNiiMdnXCMR4YLywD/sp4zHBspvtP\nVsEa91PVLisom0rTz/NMDkjfKefOA2peVxbPfn4yRTkoXcHVYVQYfU0a8zdR\ncgXrtcIwt9XRH1gqsh56uVAnJ8IHbSsYTZj7gyf1/1tElukFK15NEugVX2PQ\nUbdGjBQOL2IgqopDStDpBhS0ck6ezTPuTY1RbcGtsux5Bf2RX/vTtBV7Hy04\nkzSJnoe5HdMKW4g7xGZZsvDG1xcCuf+zToo3dnXetEIJYsKzEtcAW1DHiEk6\ndP1QhdjypjY4pw/V4XUtSa0QZaBq/mEXxG2k3seojF7KnW09KMFuvrCkPm/B\n88qYUsV6KiKHTG7wD7lcfHKIEpME+IHY65539HwR6IyuZ5o8NdE2TajNG6WQ\nYVb2YMu8CMZLJDtT+b3qyEYyPKisw87O6hHmod4zqWeYcguiWgf228Kbn22Y\nqFgs\r\n=nqMa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1VgBOc1Sby5LcVlDq5qRa99DAUR846i0oyJ5AoxjDQQIhAL9pmQLk/+ztsyOAHoPzVEu4xAt783W4ZrUYBvC8KgTG"}],"size":11592,"noattachment":false,"key":"/term-size/-/term-size-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/term-size_2.1.0_1558785889416_0.29480429852982937"},"_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":1558785889572,"_cnpm_publish_time":1558785889572,"dist-tags":{"latest":"4.0.0"}}