Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 585 Bytes

README.md

File metadata and controls

4 lines (3 loc) · 585 Bytes

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.