Skip to content

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

License

Notifications You must be signed in to change notification settings

fabiospampinato/unsanitize-basename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-basename

Usage

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published