1.0.12 • Published 7 years ago

renamex-cli v1.0.12

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

my love

重命名当前目录下的文件 by hbq

安装

npm i -g renamex-cli

描述 1. 可以重命名当前目录下的文件 用nodejs glob pattern 进行匹配 2. 默认已经忽略 node_modules文件夹 3. 在执行真正文件操作前会需要输入 y/n 确认,不用担心误操作 使用案例

renamex start -p **/*.js -r "lalala[name][ext]" -t no
//  x.js=> lalalax.js
  1. -t test ,只有当设置 -t no 才会真实执行重命名操作,否则只会列出匹配到的文件 非必需参数
  2. -p pattern 匹配,glob库 特性:pattern 默认值:**/*.* 非必需参数
  3. -r replacePattern 替换特性 支持 full,name,ext 用法 "name123ext" 或者 "123full" 必需参数
    1. full 文件名的全名, xxxx/yyy.js => yyy.js
    2. name 文件名, xxxx/yyyy.js => yyyy
    3. ext 后缀名 含. , xxxx/yyyy.js => .js

更新记录

  • 2017-5-5 8:30:v1.0.4 完全typescript化

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago