safe-filename
v1.0.1
Published
Convert strings to valid filenames or filepaths
Downloads
8
Maintainers
Readme
safe-filename
Convert strings to a valid filenames or filepaths by replacing all reserved characters from UNIX and POSIX systems. It attempts to maintain the legibility of the original path or name by replacing each character from the reserved set <>:"/\|?*
with a visually similar unicode character. Also guarantees no .
at the end of a directory's or file's name.