unsanitize-basename
v2.0.1
Published
Unsanitize a file name, the inverse of the "sanitize-basename" library.
Maintainers
Readme
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 unsanitize-basenameUsage
import unsanitize from 'unsanitize-basename';
// Let's unsanitize a file name
unsanitize ( '‹›꞉ˮ⁄∖ǀʔ⁎.txt' ); // => '<>:"/\\|?*.txt'Related
sanitize-basename: Sanitize a file name for cross-platform validity, the inverse of this library.
License
MIT © Fabio Spampinato
