3 releases
0.1.2 | Aug 4, 2024 |
---|---|
0.1.1 | Jul 16, 2024 |
0.1.0 | Jun 22, 2021 |
#232 in Text processing
2,448 downloads per month
Used in 7 crates
(5 directly)
9KB
53 lines
filenamify
Convert a string to a valid filename
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
~55K SLoC