terminal-size

Reliably get the terminal window size.

EstablishedOpen SourceLow lock-in

Pricing

See website

Flat rate

Adoption

Stable

License

Open Source

Data freshness

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

Strength Radar

Cross-platform c…Reliable and con…Simple API for e…

Honest assessment

Strengths & Weaknesses

↑ Strengths

Cross-platform compatibility

Reliable and consistent terminal size detection

Simple API for easy integration

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

None

Starts at

See website

Model

Flat rate

Enterprise

None

Performance benchmarks

How Fast Is It?

Ecosystem

Relationships

Alternatives

Next step

Get Started with terminal-size

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

View Setup Guide →