2.0.0 • Published 2 years ago

unsanitize-basename v2.0.0

Weekly downloads
1
License
-
Repository
github
Last release
2 years ago

Unsanitize Basename

Unsanitize a file name, the inverse of the "sanitize-basename" library.

It tries to restore the original forbidden characters that have been replaced by sanitize-basename.

Install

npm install --save unsanitize-basename

Usage

import unsanitize from 'unsanitize-basename';

unsanitize ( '‹›꞉ˮ⁄∖ǀʔ⁎.txt' ); // => '<>:"/\\|?*.txt'

Related

  • sanitize-basename: Sanitize a file name for cross-platform validity, the inverse of this library.

License

MIT © Fabio Spampinato

2.0.0

2 years ago

1.0.0

5 years ago