3 releases

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

#232 in Text processing

Download history 97/week @ 2024-06-13 107/week @ 2024-06-20 67/week @ 2024-06-27 54/week @ 2024-07-04 410/week @ 2024-07-11 773/week @ 2024-07-18 376/week @ 2024-07-25 361/week @ 2024-08-01 338/week @ 2024-08-08 679/week @ 2024-08-15 414/week @ 2024-08-22 368/week @ 2024-08-29 476/week @ 2024-09-05 451/week @ 2024-09-12 688/week @ 2024-09-19 758/week @ 2024-09-26

2,448 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.2–3MB
~55K SLoC