unsanitize-basename
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.12latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.12
2.0.00
1.0.00

Package Sidebar

Install

npm i unsanitize-basename

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

3.69 kB

Total Files

7

Last publish

Collaborators

  • fabiospampinato