Decision Workspace
sanitize-filename vs sanitize-filename-reader-friendly vs sanitise-file-name
Side-by-side comparison of Rust crates
57
sanitize-filename
growingv0.6.0
A simple filename sanitizer, based on Node's sanitize-filename
51
sanitize-filename-reader-friendly
growingv2.3.0
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 | 57 | 51 | 51 |
| Total Downloads | 6.7M | 173.0K | 131.7K |
| 30d Downloads | 454.5K | 6.9K | 8.2K |
| Dependents | 1.9K | 339 | 160 |
| Releases | 8 | 12 | 1 |
| Last Updated | 177d ago | 326d ago | 1542d ago |
| Age | 7y 5m | 6y | 4y 2m |
Health Breakdown
sanitize-filename
Maintenance
11
Quality
15
Community
11
Popularity
8
Documentation
12
sanitize-filename-reader-friendly
Maintenance
6
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.0 | 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 leads with a health score of 57/100, but none of the options score above 80.
- •sanitize-filename is depended on by 1.9K crates — strongest ecosystem trust.
- •⚠ sanitise-file-name has not been updated in over a year.
- •sanitize-filename is pre-1.0 — API may change.