Decision Workspace
trim-newlines vs trim-in-place vs strip-indent
Side-by-side comparison of Rust crates
49
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.
60
trim-in-place
growingv0.2.0
In-place trimming strings.
51
strip-indent
experimentalv0.1.0
Strip leading whitespace from each line of a multi-line string, based on the least-indented line. A faithful port of the strip-indent npm package. Zero deps, no_std.
Core Metrics
| trim-newlines | trim-in-place | strip-indent | |
|---|---|---|---|
| Health Score | 49 | 60 | 51 |
| Total Downloads | 16 | 13.5M | 38 |
| 30d Downloads | 0 | 315.7K | 0 |
| Dependents | 0 | 53 | 1 |
| Releases | 1 | 9 | 1 |
| Last Updated | 19d ago | 21d ago | 19d ago |
| Age | 19d | 6y 1m | 19d |
Health Breakdown
trim-newlines
Maintenance
12
Quality
15
Community
6
Popularity
1
Documentation
15
trim-in-place
Maintenance
15
Quality
15
Community
10
Popularity
8
Documentation
12
strip-indent
Maintenance
12
Quality
15
Community
7
Popularity
2
Documentation
15
Technical Details
| trim-newlines | trim-in-place | strip-indent | |
|---|---|---|---|
| Version | 0.1.0 | 0.2.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 0 | 1 | 0 |
| Crate Size | 8KB | 4KB | 9KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | 1.81 | 1.85 | 1.81 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •trim-in-place leads with a health score of 60/100, but none of the options score above 80.