A filename sanitizer aiming to produce reader friendly filenames, while preserving as much information as possible.
Unlike Node's sanitize-filename, this library replaces
non-file-system-compatible characters with underscore and space. Both are
trimmed when they appear at the beginning or at the end of a line or when they
repeat within. Non-printable punctuation marks are replaced by underscores,
other non-printable characters by spaces, except the non-printable space
U+200b which is filtered out. Newlines are replaced by dashes.
extern crate sanitize_filename_reader_friendly;
This library comes with a simple command-line application. Usage: