Skip to content

chawyehsu/filenamify-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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