Skip to content

Convert strings to valid filenames or filepaths

Notifications You must be signed in to change notification settings

klchoi/safe-filename

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Convert strings to valid filenames or filepaths

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%