Decision Workspace
sanitise-file-name vs sanitize-filename-reader-friendly vs sanitize-filename
Side-by-side comparison of Rust crates
51
sanitise-file-name
growingv1.0.0
An unusually flexible and efficient file name sanitiser
56
sanitize-filename-reader-friendly
growingv2.3.1
A filename sanitizer aiming to produce reader friendly filenames.
55
sanitize-filename
growingv0.6.0
A simple filename sanitizer, based on Node's sanitize-filename
Core Metrics
| sanitise-file-name | sanitize-filename-reader-friendly | sanitize-filename | |
|---|---|---|---|
| Health Score | 51 | 56 | 55 |
| Total Downloads | 172.2K | 193.8K | 9.0M |
| 30d Downloads | 9.5K | 6.1K | 401.9K |
| Dependents | 178 | 355 | 2.4K |
| Releases | 1 | 13 | 8 |
| Last Updated | 1650d ago | 98d ago | 285d ago |
| Age | 4y 6m | 6y 3m | 7y 8m |
Health Breakdown
sanitise-file-name
Maintenance
1
Quality
22
Community
12
Popularity
6
Documentation
10
sanitize-filename-reader-friendly
Maintenance
11
Quality
20
Community
9
Popularity
6
Documentation
10
sanitize-filename
Maintenance
9
Quality
15
Community
11
Popularity
8
Documentation
12
Technical Details
| sanitise-file-name | sanitize-filename-reader-friendly | sanitize-filename | |
|---|---|---|---|
| Version | 1.0.0 | 2.3.1 | 0.6.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | BlueOak-1.0.0 OR MIT OR Apache-2.0 | MIT/Apache-2.0 | MIT |
| Dependencies | 2 | 1 | 1 |
| Crate Size | 22KB | 10KB | 5KB |
| Features | 4 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | — | — | 1.70.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •sanitize-filename-reader-friendly leads with a health score of 56/100, but none of the options score above 80.
- •sanitize-filename has the most downloads (9.0M), suggesting wider adoption.
- •sanitize-filename is depended on by 2.4K crates — strongest ecosystem trust.
- •⚠ sanitise-file-name has not been updated in over a year.
- •sanitize-filename is pre-1.0 — API may change.