Skip to content
JS
Package

cli-width

Get stdout window width, with two fallbacks, tty and then a default.

v4.1.0, 5 Aug 2023ISCCommonJSTypes: Bundled
$ npm install cli-width

Key numbers

As of 25 Sept 2026
Weekly downloads
55.4m
+68% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 years ago
v4.1.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60m80mSept 2025Mar 2026Sept 2026High 76m (25 Aug 2026)Low 21m (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.

55,442,974 downloads last week, 271,688,018 in the last month. The 12-month change of +68% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
012 in total
Latest version
4.1.0, 5 Aug 20233 years ago
First published
21 Jan 2015
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
1,227

Major versions

  1. v4 first release 4.0.0, 29 Mar 2022
  2. v3 first release 3.0.0, 14 Apr 2020
  3. v2 first release 2.0.0, 8 Feb 2016
  4. v1 first release 1.0.0, 21 Jan 2015

Recent releases

VersionPublished
4.1.05 Aug 2023
4.0.029 Mar 2022
3.0.014 Apr 2020
2.2.114 Apr 2020
2.2.022 Aug 2017
2.1.122 Aug 2017
2.1.015 Feb 2016
2.0.08 Feb 2016
1.1.126 Jan 2016
1.1.016 Oct 2015
1.0.122 Jan 2015
1.0.021 Jan 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 12
Runtimes
-
Unpacked size (npm)
4.7 kB
Dependencies (0)
None
npm install cli-width
  • jsDelivrhttps://cdn.jsdelivr.net/npm/cli-width@4.1.0/
  • unpkghttps://unpkg.com/cli-width@4.1.0/
  • esm.shhttps://esm.sh/cli-width@4.1.0
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.