filenamify

Crates.iofilenamify
lib.rsfilenamify
version0.1.2
sourcesrc
created_at2021-06-22 07:05:57.086178
updated_at2024-08-04 02:27:15.057582
descriptionConvert a string to a valid filename
homepage
repositoryhttps://github.com/chawyehsu/filenamify-rs
max_upload_size
id413269
size23,380
Chawye Hsu (chawyehsu)

documentation

README

filenamify

Convert a string to a valid filename

cicd docs-svg crates-svg deps-svg

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

Commit count: 2

cargo fmt