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

/unsanitize-basename/

    Package Sidebar

    Install

    npm i unsanitize-basename

    Weekly Downloads

    3

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    3.69 kB

    Total Files

    7

    Last publish

    Collaborators

    • fabiospampinato