Decision Workspace
sanitize-filename vs sanitize-filename-reader-friendly vs sanitise-file-name
Side-by-side comparison of Rust crates
55
sanitize-filename
growingv0.6.0
A simple filename sanitizer, based on Node's sanitize-filename
56
sanitize-filename-reader-friendly
growingv2.3.1
A filename sanitizer aiming to produce reader friendly filenames.
51
sanitise-file-name
growingv1.0.0
An unusually flexible and efficient file name sanitiser
Core Metrics
| sanitize-filename | sanitize-filename-reader-friendly | sanitise-file-name | |
|---|---|---|---|
| Health Score | 55 | 56 | 51 |
| Total Downloads | 9.0M | 193.8K | 172.2K |
| 30d Downloads | 401.9K | 6.1K | 9.5K |
| Dependents | 2.4K | 355 | 178 |
| Releases | 8 | 13 | 1 |
| Last Updated | 285d ago | 98d ago | 1650d ago |
| Age | 7y 8m | 6y 3m | 4y 6m |
Health Breakdown
sanitize-filename
Maintenance
9
Quality
15
Community
11
Popularity
8
Documentation
12
sanitize-filename-reader-friendly
Maintenance
11
Quality
20
Community
9
Popularity
6
Documentation
10
sanitise-file-name
Maintenance
1
Quality
22
Community
12
Popularity
6
Documentation
10
Technical Details
| sanitize-filename | sanitize-filename-reader-friendly | sanitise-file-name | |
|---|---|---|---|
| Version | 0.6.0 | 2.3.1 | 1.0.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT/Apache-2.0 | BlueOak-1.0.0 OR MIT OR Apache-2.0 |
| Dependencies | 1 | 1 | 2 |
| Crate Size | 5KB | 10KB | 22KB |
| Features | 0 | 0 | 4 |
| 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.