terminal-size

Reliably get the terminal window size.

EstablishedOpen SourceLow lock-in

Pricing

Free tier

Flat rate

Adoption

Cooling

License

Open Source

Data freshness

Aging · Jun 8, 2026

Overview

What is terminal-size?

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.

Key differentiator

terminal-size stands out by providing a simple, reliable solution for detecting terminal window dimensions across different operating systems and environments.

Capability profile

Capability Radar

Ease of StartEcosystemValueMaturityFlexibilityScale Ready

Honest assessment

Strengths & Weaknesses

↑ Strengths

Cross-platform compatibilitymedium

Reliable and consistent terminal size detectionmedium

Simple API for easy integrationmedium

↓ Weaknesses

Limited language supporthigh

The tool is primarily designed for JavaScript/Node.js, which may limit its utility in environments that do not use these languages.

Small community and limited documentationmedium

Given the open-source nature of terminal-size, there might be fewer contributors and less comprehensive documentation compared to more popular tools.

Potential performance issues in complex applicationslow

The tool's simplicity means it may not handle edge cases or highly complex terminal configurations as efficiently as specialized solutions.

Fit analysis

Who is it for?

✓ Best 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.

✕ Not a fit for

Projects where the exact terminal size is not critical for functionality or display.

Applications that do not interact with the terminal environment directly.

Cost structure

Pricing

Free Tier

Available

Open source — free to use

Starts at

$0

Model

Flat rate

Enterprise

None

Performance benchmarks

How Fast Is It?

Ecosystem

Relationships

Alternatives

Works well with

Next step

Get Started with terminal-size

Step-by-step setup guide with code examples and common gotchas.

View Setup Guide →