1 unstable release

0.1.0 Jun 22, 2021

#909 in Text processing

Download history 276/week @ 2023-12-09 221/week @ 2023-12-16 143/week @ 2023-12-23 145/week @ 2023-12-30 238/week @ 2024-01-06 400/week @ 2024-01-13 356/week @ 2024-01-20 323/week @ 2024-01-27 398/week @ 2024-02-03 245/week @ 2024-02-10 269/week @ 2024-02-17 261/week @ 2024-02-24 353/week @ 2024-03-02 229/week @ 2024-03-09 165/week @ 2024-03-16 202/week @ 2024-03-23

968 downloads per month
Used in 3 crates

MIT/Apache

7KB

filenamify

docs-svg crates-svg deps-svg

Convert a string to a valid safe filename

Install

[dependencies]
filenamify = "0.1"

Examples

use filenamify::filenamify;
let safe_filename = filenamify("//foo/bar/file");
println!("{}", safe_filename); // Prints "_foo_bar_file"

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2.1–3MB
~53K SLoC