Skip to content
JS
Package

window-size

Reliable way to get the height and width of terminal/console, since it's not calculated or updated the same way on all platforms, environments and node.js versions.

v1.1.1, 27 Jul 2018MITCommonJSTypes: NoneCLI tools and terminal utilities
$ npm install window-size

Key numbers

As of 25 Sept 2026
Weekly downloads
4.1m
-2% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
8 years ago
v1.1.1
GitHub stars
85
15 forks
Open issues / PRs
1 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6mSept 2025Mar 2026Sept 2026High 5m (25 Nov 2025)Low 1.9m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

4,067,889 downloads last week, 15,847,446 in the last month. The 12-month change of -2% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
010 in total
Latest version
1.1.1, 27 Jul 20188 years ago
First published
15 Feb 2014
Last push to GitHub
12 Aug 2024773 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
304

Major versions

  1. v1 first release 1.0.0, 7 May 2017
  2. v0 first release 0.1.0, 15 Feb 2014

Recent releases

VersionPublished
1.1.127 Jul 2018
1.1.023 Jun 2017
1.0.07 May 2017
0.3.010 Dec 2016
0.2.026 Jan 2016
0.1.415 Nov 2015
0.1.315 Nov 2015
0.1.23 Jul 2015
0.1.17 Jun 2015
0.1.015 Feb 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 0.10.0
Runtimes
-
Unpacked size (npm)
12 kB
Dependencies (2)
is-numberdefine-property
npm install window-size
  • jsDelivrhttps://cdn.jsdelivr.net/npm/window-size@1.1.1/
  • unpkghttps://unpkg.com/window-size@1.1.1/
  • esm.shhttps://esm.sh/window-size@1.1.1
PackageWeekly downloadsGzipLast releaseModuleComparison
terminal-size2.8m-7 months agoESM only-
fast-string-width23.9m-11 months agoESM only-
fast-string-truncated-width24.1m-11 months agoESM only-
listr230.5m-22 days agoESM + CommonJS-
@listr2/prompt-adapter-inquirer3.5m-22 days agoESM + CommonJS-
yoctocolors28.1m-1 month agoESM only-
yoctocolors-cjs21.5m-1 year agoCommonJS-
ervy196.1k-6 years ago--
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.