renamefilenames

1.0.8 • Public • Published

description

  • rename files names in current directory
  • support regular expression

install

npm install renamefilenames -g

two usages

  • change some-before.txt to some-after.txt

Passing parameters through the command line

renamefile  "before" "after"
  • change some-before.txt to some-.txt
renamefile  "before"
  • change some-aaa-bbb-ext.txt to some.txt
renamefile  "/-(.+?)-(.+?)-ext/"

Passing parameters through configuration files

  1. Add a replace.json file in current directory
{
  "before": "after"
}

2.Then execute command in current directory

renamefile;

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.8
    0
    • latest

Version History

Package Sidebar

Install

npm i renamefilenames

Weekly Downloads

0

Version

1.0.8

License

MIT

Unpacked Size

2.62 kB

Total Files

4

Last publish

Collaborators

  • zhangrenyang