NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #822 most downloaded on npm
Truncate a string to a specific width in the terminal
Latest stable
6.2.0
Last release 22 days ago
31 Oct 2026
Ships unpredictably
gaps range from 2 weeks to 2.1 years
Most releases are documented
notes for 14 of 19 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
19 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Fix preferTruncationOnSpace cutting one column too early when the text has them 17af1b6
preferTruncationOnSpace cutting one column too early when the text has them 17af1b6preferTruncationOnSpace word boundaries for wide characters and combining marks 32b6930preferTruncationOnSpace picking different word boundaries for styled text 34de7efhttps://github.com/sindresorhus/cli-truncate/compare/v6.1.1...v6.2.0
Fix: Reserve room for the truncation character in preferTruncationOnSpace (#34) f16fcab
preferTruncationOnSpace (#34) f16fcabhttps://github.com/sindresorhus/cli-truncate/compare/v6.1.0...v6.1.1
Improve input validation b7b0bd7
Your coding agent can read these notes before it upgrades. Set up the MCP server →
https://github.com/sindresorhus/cli-truncate/compare/v6.0.1...v6.1.0
Fix: Keep position: 'middle' within the column budget (#32) f87490f
position: 'middle' within the column budget (#32) f87490fhttps://github.com/sindresorhus/cli-truncate/compare/v6.0.0...v6.0.1
https://github.com/sindresorhus/cli-truncate/compare/v5.2.0...v6.0.0
https://github.com/sindresorhus/cli-truncate/compare/v5.2.0...v6.0.0
https://github.com/sindresorhus/cli-truncate/compare/v5.1.1...v5.2.0
https://github.com/sindresorhus/cli-truncate/compare/v5.1.1...v5.2.0
Fix truncation behavior for a single character (#26) e06eefa
https://github.com/sindresorhus/cli-truncate/compare/v5.1.0...v5.1.1
Style truncation character to inherit surrounding ANSI style aa504f6
https://github.com/sindresorhus/cli-truncate/compare/v5.0.0...v5.1.0
https://github.com/sindresorhus/cli-truncate/compare/v4.0.0...v5.0.0
https://github.com/sindresorhus/cli-truncate/compare/v4.0.0...v5.0.0
https://github.com/sindresorhus/cli-truncate/compare/v3.1.0...v4.0.0
https://github.com/sindresorhus/cli-truncate/compare/v3.1.0...v4.0.0
Add `truncationCharacter` option (#19) 23b40dc
truncationCharacter option (#19) 23b40dchttps://github.com/sindresorhus/cli-truncate/compare/v3.0.0...v3.1.0
This package is now pure ESM. Please read this.
https://github.com/sindresorhus/cli-truncate/compare/v2.1.0...v3.0.0
https://github.com/sindresorhus/cli-truncate/compare/v2.0.0...v2.1.0
https://github.com/sindresorhus/cli-truncate/compare/v2.0.0...v2.1.0
Add preferTruncationOnSpace option (#11) baf4461
Breaking:
Enhancements:
space option (#10) 7e0c356preferTruncationOnSpace option (#11) baf4461https://github.com/sindresorhus/cli-truncate/compare/v1.1.0...v2.0.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.