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

2.0.0 • 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 --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

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i unsanitize-basename

    Weekly Downloads

    1

    Version

    2.0.0

    License

    none

    Unpacked Size

    5.19 kB

    Total Files

    13

    Last publish

    Collaborators

    • fabiospampinato