filename-converter
Convert an invalid filename to a valid one with a self-defined mapping table. The key point is the mapping is reversible.
Invalid Characters
/<>:"\|?*
is the current set of invalid characters, see mapping_table.js to get the mapping table.
Usage
Installation
npm i filename-converter
Example
const filenameConverter = ; const filename = 'abc:de<.json';const ret = filenameConverter;console; // => abc@004de@002.jsonconsole; // => abc:de<.json