2.0.0 • Published 2 years ago
unsanitize-basename v2.0.0
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