Skip to content
JS
Package

terminal-size

Reliably get the terminal window size (columns & rows)

v4.0.1, 2 Feb 2026MITESM onlyTypes: BundledCLI tools and terminal utilities
$ npm install terminal-size

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
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.5m (25 Aug 2026)Low 67.3k (30 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v4 first release 4.0.0, 4 Nov 2023

Recent releases

VersionPublished
4.0.12 Feb 2026
4.0.04 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/terminal-size@4.0.1/
  • unpkghttps://unpkg.com/terminal-size@4.0.1/
  • esm.shhttps://esm.sh/terminal-size@4.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
window-size4.1m-8 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.