terminal-size
Reliably get the terminal window size.
- Status
- Generally available
- Last checked
- Aging · Sep 4, 2026
- License
- Open source
- Pricing
- Free tier · from $0
What it is
terminal-size is a reliable tool for developers to accurately determine the dimensions of their terminal window. This utility ensures consistent behavior across different operating systems and environments, making it an essential component for applications that need precise terminal sizing information.
terminal-size stands out by providing a simple, reliable solution for detecting terminal window dimensions across different operating systems and environments.
When it fits — and when it doesn’t
A good fit for
CLI application developers who require precise control over how content is displayed within a terminal window.
Developers working on cross-platform applications that need to adapt to varying terminal sizes.
Look elsewhere if
Projects where the exact terminal size is not critical for functionality or display.
Applications that do not interact with the terminal environment directly.
Known weaknesses
Each one links to the public issue, changelog or docs page it came from, where we have one.
- 01
Limited language support
The tool is primarily designed for JavaScript/Node.js, which may limit its utility in environments that do not use these languages.
- 02
Small community and limited documentation
Given the open-source nature of terminal-size, there might be fewer contributors and less comprehensive documentation compared to more popular tools.
- 03
Potential performance issues in complex applications
The tool's simplicity means it may not handle edge cases or highly complex terminal configurations as efficiently as specialized solutions.
What it does well
Cross-platform compatibility
Reliable and consistent terminal size detection
Simple API for easy integration
Pricing
- Free tier
- YesOpen source — free to use
- Paid from
- $0
- Model
- Flat rate
- Enterprise plan
- No
Pricing not independently confirmed — check the vendor’s page.
Performance benchmarks
How Fast Is It?
Set up terminal-size
Setup steps, common gotchas and what to check after 30 days.