Package
terminal-size
Reliably get the terminal window size (columns & rows)
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 2.8m
- +2682% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 7 months ago
- v4.0.1
- GitHub stars
- 149
- 17 forks
- Open issues / PRs
- 1 / 0
- Contributors
- -
- Commits, last 52 weeks
- 5
Downloads
Last week 2026-09-15 to 2026-09-21
2,779,153 downloads last week, 12,927,314 in the last month. The 12-month change of +2682% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 12 in total
- Latest version
- 4.0.1, 2 Feb 20267 months ago
- First published
- 4 Nov 2023
- Last push to GitHub
- 20 Sept 20264 days before the snapshot
- Repository archived
- No
- Open issues
- 1
- Open pull requests
- 0
- Commits, last 52 weeks
- 5
- Dependents on npm
- 88
Major versions
- v4 first release 4.0.0, 4 Nov 2023
Recent releases
| Version | Published |
|---|---|
| 4.0.1 | 2 Feb 2026 |
| 4.0.0 | 4 Nov 2023 |
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=18
- Runtimes
- -
- Unpacked size (npm)
- 6.3 kB
- Dependencies (0)
- None
npm install terminal-size- jsDelivr
https://cdn.jsdelivr.net/npm/terminal-size@4.0.1/ - unpkg
https://unpkg.com/terminal-size@4.0.1/ - esm.sh
https://esm.sh/terminal-size@4.0.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| window-size | 4.1m | - | 8 years ago | CommonJS | - |
Indexability: Indexed.