pub fn slugify<S: AsRef<str>>(input: S) -> StringExpand description
Convert any string-like input into a safe filename slug with default options.
ยงExamples
use minislug::slugify;
assert_eq!(slugify("Hello, world!"), "hello-world");
assert_eq!(slugify(" spaced out "), "spaced-out");
assert_eq!(slugify("a/b\\c"), "a-b-c");