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.
npm install --save unsanitize-basename
import unsanitize from 'unsanitize-basename';
unsanitize ( '‹›꞉ˮ⁄∖ǀʔ⁎.txt' ); // => '<>:"/\\|?*.txt'
- sanitize-basename: Sanitize a file name for cross-platform validity, the inverse of this library.
MIT © Fabio Spampinato