You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
478 B
18 lines
478 B
2 years ago
|
const fs = require('fs');
|
||
|
const unidecode = require('unidecode')
|
||
|
const path = require('path')
|
||
|
|
||
|
|
||
|
function renameSvgsToUnicode(){
|
||
|
testFolder = "../svgs/iconsax2"
|
||
|
fs.readdirSync(testFolder).forEach(file => {
|
||
|
// fs.rename("../svgs/iconsax2/"+file ,"../svgs/iconsax2/" +file.substring(3,7)+ ".svg",function(err) {
|
||
|
// if ( err ) console.log('ERROR: ' + err);
|
||
|
|
||
|
// } )
|
||
|
console.log(file)
|
||
|
});
|
||
|
|
||
|
}
|
||
|
renameSvgsToUnicode()
|
||
|
module.exports = {renameSvgsToUnicode}
|