prefix-rename Renames the files that match a prefix Installation npm i -g prefix-rename Usage prefix-rename -d dir1 -p prefix1 -r tttt1 The above script will rename all the files from dir1 whose name start with prefix1 to start with tttt1