3 releases

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

#243 in Text processing

Download history 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 780/week @ 2024-09-26 682/week @ 2024-10-03 482/week @ 2024-10-10 576/week @ 2024-10-17 475/week @ 2024-10-24

2,365 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
~54K SLoC