Package
cli-truncate
Truncate a string to a specific width in the terminal
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
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
- v6 first release 6.0.0, 4 Apr 2026
- v5 first release 5.0.0, 31 Aug 2025
- v4 first release 4.0.0, 28 Oct 2023
- v3 first release 3.0.0, 10 Aug 2021
- v2 first release 2.0.0, 13 Jun 2019
- v1 first release 1.0.0, 13 Jan 2017
- v0 first release 0.1.0, 11 Mar 2016
Recent releases
| Version | Published |
|---|---|
| 6.1.1 | 9 Jul 2026 |
| 6.1.0 | 28 Jun 2026 |
| 6.0.1 | 23 Jun 2026 |
| 6.0.0 | 4 Apr 2026 |
| 5.2.0 | 1 Mar 2026 |
| 5.1.1 | 23 Oct 2025 |
| 5.1.0 | 15 Sept 2025 |
| 5.0.0 | 31 Aug 2025 |
| 4.0.0 | 28 Oct 2023 |
| 3.1.0 | 9 Oct 2021 |
| 3.0.0 | 10 Aug 2021 |
| 2.1.0 | 6 Dec 2019 |
| 2.0.0 | 13 Jun 2019 |
| 1.1.0 | 23 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- jsDelivr
https://cdn.jsdelivr.net/npm/cli-truncate@6.1.1/ - unpkg
https://unpkg.com/cli-truncate@6.1.1/ - esm.sh
https://esm.sh/cli-truncate@6.1.1
Indexability: Indexed.