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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i safe-filename

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

1.84 kB

Total Files

4

Last publish

Collaborators

  • jaliborc