3 releases

0.1.2 Aug 4, 2024
0.1.1 Jul 16, 2024
0.1.0 Jun 22, 2021

#1239 in Text processing

Download history 189/week @ 2025-07-30 304/week @ 2025-08-06 372/week @ 2025-08-13 465/week @ 2025-08-20 428/week @ 2025-08-27 375/week @ 2025-09-03 468/week @ 2025-09-10 454/week @ 2025-09-17 413/week @ 2025-09-24 549/week @ 2025-10-01 287/week @ 2025-10-08 383/week @ 2025-10-15 516/week @ 2025-10-22 638/week @ 2025-10-29 514/week @ 2025-11-05 491/week @ 2025-11-12

2,228 downloads per month
Used in 9 crates (6 directly)

MIT/Apache

9KB
53 lines

filenamify

Convert a string to a valid filename

cicd docs-svg crates-svg deps-svg

Install

[dependencies]
filenamify = "0.1"

Examples

use filenamify::filenamify;
let safe_filename = filenamify("//foo/bar/file");
assert_eq!(safe_filename, "_foo_bar_file");

License

filenamify-rs © Chawye Hsu. Licensed under either of Apache-2.0 or MIT license at your option.

Blog · GitHub @chawyehsu · Twitter @chawyehsu

Dependencies

~2–3MB
~52K SLoC