filenamify

Crates.iofilenamify
lib.rsfilenamify
version0.1.0
sourcesrc
created_at2021-06-22 07:05:57.086178
updated_at2021-06-22 07:05:57.086178
descriptionConvert a string to a valid safe filename.
homepage
repositoryhttps://github.com/chawyehsu/filenamify-rs
max_upload_size
id413269
size17,505
Chawye Hsu (chawyehsu)

documentation

README

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.
Commit count: 2

cargo fmt