safe-filename

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i safe-filename

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

1.84 kB

Total Files

4

Last publish

Collaborators

  • jaliborc