Decision Workspace
ms-convert vs pretty-ms vs fmt-dur
Side-by-side comparison of Rust crates
37
ms-convert
experimentalv0.1.0
Convert human-readable time strings to milliseconds and vice versa, inspired by vercel/ms
49
pretty-ms
experimentalv0.1.1
Convert milliseconds to a human-readable string: 1337000000 -> "15d 11h 23m 20s". A faithful port of the pretty-ms npm package. Zero dependencies.
45
fmt-dur
growingv0.1.3
Strict human-readable Duration parser/formatter: '2d3h4m', '90s', '1.5h'. Enforces unit order, no duplicates, and precise decimal rules.
Core Metrics
| ms-convert | pretty-ms | fmt-dur | |
|---|---|---|---|
| Health Score | 37 | 49 | 45 |
| Total Downloads | 23 | 49 | 377 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 0 |
| Releases | 1 | 2 | 2 |
| Last Updated | 235d ago | 109d ago | 327d ago |
| Age | 7m | 3m | 1y |
Health Breakdown
ms-convert
Maintenance
4
Quality
15
Community
6
Popularity
2
Documentation
10
pretty-ms
Maintenance
11
Quality
15
Community
6
Popularity
2
Documentation
15
fmt-dur
Maintenance
7
Quality
17
Community
3
Popularity
3
Documentation
15
Technical Details
| ms-convert | pretty-ms | fmt-dur | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.1 | 0.1.3 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 1 |
| Crate Size | 5KB | 13KB | 8KB |
| Features | 0 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2024 |
| MSRV | — | 1.74 | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •pretty-ms leads with a health score of 49/100, but none of the options score above 80.
- •fmt-dur has the most downloads (377), suggesting wider adoption.