3 releases

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

#329 in Text processing

Download history 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 32/week @ 2024-12-26 257/week @ 2025-01-02 631/week @ 2025-01-09 520/week @ 2025-01-16 607/week @ 2025-01-23 563/week @ 2025-01-30 640/week @ 2025-02-06 407/week @ 2025-02-13 470/week @ 2025-02-20 529/week @ 2025-02-27

2,183 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