3 releases

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

#280 in Text processing

Download history 451/week @ 2024-09-12 688/week @ 2024-09-19 780/week @ 2024-09-26 682/week @ 2024-10-03 482/week @ 2024-10-10 576/week @ 2024-10-17 493/week @ 2024-10-24 504/week @ 2024-10-31 683/week @ 2024-11-07 433/week @ 2024-11-14 558/week @ 2024-11-21 687/week @ 2024-11-28 871/week @ 2024-12-05 611/week @ 2024-12-12 261/week @ 2024-12-19 15/week @ 2024-12-26

1,946 downloads per month
Used in 7 crates (5 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
~53K SLoC