Decision Workspace
slice-ansi vs cli-truncate vs widest-line
Side-by-side comparison of Rust crates
48
slice-ansi
experimentalv0.1.1
Slice a string by terminal display column, preserving ANSI styling and wide (CJK) characters. A Rust take on Node's slice-ansi.
49
cli-truncate
experimentalv0.1.1
Truncate a string to a terminal display width with an ellipsis — wide-character (CJK) and ANSI-escape aware.
35
widest-line
growingv0.1.0
Find the widest line in a string with proper Unicode and ANSI escape code support
Core Metrics
| slice-ansi | cli-truncate | widest-line | |
|---|---|---|---|
| Health Score | 48 | 49 | 35 |
| Total Downloads | 40 | 82 | 356 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 1 | 0 |
| Releases | 2 | 2 | 1 |
| Last Updated | 109d ago | 109d ago | 397d ago |
| Age | 3m | 3m | 1y 1m |
Health Breakdown
slice-ansi
Maintenance
11
Quality
14
Community
6
Popularity
2
Documentation
15
cli-truncate
Maintenance
11
Quality
14
Community
7
Popularity
2
Documentation
15
widest-line
Maintenance
2
Quality
14
Community
6
Popularity
3
Documentation
10
Technical Details
| slice-ansi | cli-truncate | widest-line | |
|---|---|---|---|
| Version | 0.1.1 | 0.1.1 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 1 | 6 |
| Crate Size | 13KB | 14KB | 15KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.81 | 1.81 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •cli-truncate leads with a health score of 49/100, but none of the options score above 80.
- •widest-line has the most downloads (356), suggesting wider adoption.
- •⚠ widest-line has not been updated in over a year.