1 unstable release
0.1.0 | Jun 22, 2021 |
---|
#909 in Text processing
968 downloads per month
Used in 3 crates
7KB
filenamify
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