1.0.1 • Published 5 years ago

safe-filename v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

safe-filename

npm.io npm.io npm.io

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.