3 releases

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

#261 in Text processing

Download history 711/week @ 2024-07-20 175/week @ 2024-07-27 484/week @ 2024-08-03 365/week @ 2024-08-10 675/week @ 2024-08-17 377/week @ 2024-08-24 382/week @ 2024-08-31 439/week @ 2024-09-07 483/week @ 2024-09-14 918/week @ 2024-09-21 654/week @ 2024-09-28 635/week @ 2024-10-05 465/week @ 2024-10-12 549/week @ 2024-10-19 439/week @ 2024-10-26 674/week @ 2024-11-02

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