Crates.io | filenamify |
lib.rs | filenamify |
version | 0.1.2 |
source | src |
created_at | 2021-06-22 07:05:57.086178 |
updated_at | 2024-08-04 02:27:15.057582 |
description | Convert a string to a valid filename |
homepage | |
repository | https://github.com/chawyehsu/filenamify-rs |
max_upload_size | |
id | 413269 |
size | 23,380 |
Convert a string to a valid filename
[dependencies]
filenamify = "0.1"
use filenamify::filenamify;
let safe_filename = filenamify("//foo/bar/file");
assert_eq!(safe_filename, "_foo_bar_file");
filenamify-rs © Chawye Hsu. Licensed under either of Apache-2.0 or MIT license at your option.
Blog · GitHub @chawyehsu · Twitter @chawyehsu