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.
2
Versions
MIT
License
No
Install Scripts
Missing
Provenance
Supply chain provenance
Status for the latest visible version.
No SLSA provenance
npm registry signatures
gitHead linked
Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.
Maintainers
doowbjonschlinkert
Keywords
columnsconsoledarwinheightlinesredirectedresizerowssizetermterm-sizeterminalttyunixwidthwinwindowwindows
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| semgrep | semgrep:child-process-import | AI (semgrep): window-size legitimately uses child_process to query terminal dimensions (e.g., tput/stty) on Unix systems. This is the documented, expected behavior for this type of utility. | ai |