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