renamefilenames
v1.0.8
Published
- rename files names in current directory - support regular expression
Downloads
6
Maintainers
Readme
description
- rename files names in current directory
- support regular expression
install
npm install renamefilenames -g
two usages
- change
some-before.txt
tosome-after.txt
Passing parameters through the command line
renamefile "before" "after"
- change
some-before.txt
tosome-.txt
renamefile "before"
- change
some-aaa-bbb-ext.txt
tosome.txt
renamefile "/-(.+?)-(.+?)-ext/"
Passing parameters through configuration files
- Add a replace.json file in current directory
{
"before": "after"
}
2.Then execute command in current directory
renamefile;