Skip to content
JS
Package

cli-truncate

Truncate a string to a specific width in the terminal

v6.1.1, 9 Jul 2026MITESM onlyTypes: BundledCLI tools and terminal utilities
$ npm install cli-truncate

Key numbers

As of 25 Sept 2026
Weekly downloads
38.4m
+50% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
2 months ago
v6.1.1
GitHub stars
97
17 forks
Open issues / PRs
0 / 0
Contributors
11
Commits, last 52 weeks
13

Downloads

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

38,351,870 downloads last week, 180,610,298 in the last month. The 12-month change of +50% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
618 in total
Latest version
6.1.1, 9 Jul 20262 months ago
First published
11 Mar 2016
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
13
Dependents on npm
473

Major versions

  1. v6 first release 6.0.0, 4 Apr 2026
  2. v5 first release 5.0.0, 31 Aug 2025
  3. v4 first release 4.0.0, 28 Oct 2023
  4. v3 first release 3.0.0, 10 Aug 2021
  5. v2 first release 2.0.0, 13 Jun 2019
  6. v1 first release 1.0.0, 13 Jan 2017
  7. v0 first release 0.1.0, 11 Mar 2016

Recent releases

VersionPublished
6.1.19 Jul 2026
6.1.028 Jun 2026
6.0.123 Jun 2026
6.0.04 Apr 2026
5.2.01 Mar 2026
5.1.123 Oct 2025
5.1.015 Sept 2025
5.0.031 Aug 2025
4.0.028 Oct 2023
3.1.09 Oct 2021
3.0.010 Aug 2021
2.1.06 Dec 2019
2.0.013 Jun 2019
1.1.023 Jul 2017
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
14 kB
Dependencies (2)
slice-ansistring-width
npm install cli-truncate
  • jsDelivrhttps://cdn.jsdelivr.net/npm/cli-truncate@6.1.1/
  • unpkghttps://unpkg.com/cli-truncate@6.1.1/
  • esm.shhttps://esm.sh/cli-truncate@6.1.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.