Decision Workspace
trim-newlines vs trim-in-place vs whitespace-sifter
Side-by-side comparison of Rust crates
45
trim-newlines
experimentalv0.1.0
Trim newlines (\r and \n) from the start and/or end of a string. A faithful port of the trim-newlines npm package. Zero deps, no_std.
61
trim-in-place
growingv0.2.1
In-place trimming strings.
46
whitespace-sifter
growingv2.3.7
Sift duplicate whitespaces away!
Core Metrics
| trim-newlines | trim-in-place | whitespace-sifter | |
|---|---|---|---|
| Health Score | 45 | 61 | 46 |
| Total Downloads | 25 | 15.4M | 21.4K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 55 | 0 |
| Releases | 1 | 11 | 20 |
| Last Updated | 108d ago | 4d ago | 232d ago |
| Age | 3m | 6y 4m | 3y 9m |
Health Breakdown
trim-newlines
Maintenance
7
Quality
15
Community
6
Popularity
2
Documentation
15
trim-in-place
Maintenance
16
Quality
15
Community
10
Popularity
8
Documentation
12
whitespace-sifter
Maintenance
9
Quality
14
Community
6
Popularity
5
Documentation
12
Technical Details
| trim-newlines | trim-in-place | whitespace-sifter | |
|---|---|---|---|
| Version | 0.1.0 | 0.2.1 | 2.3.7 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 0 | 1 | 1 |
| Crate Size | 8KB | 4KB | 33KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 55.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | 1.81 | 1.85 | 1.79.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •trim-in-place leads with a health score of 61/100, but none of the options score above 80.
- •trim-newlines, trim-in-place are pre-1.0 — API may change.