1.0.1 • Published 5 years ago

rename-cn-file-cli v1.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

批量重命名含中文文件名

  1. 使用前请安装:

soimort/translate-shell: Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc.

  1. 安装本工具
yarn global add rename-cn-file-cli
  1. 使用

注意文件会被替换

rename-cn-file your-directory/*
# or
rename-cn-file file.jpg

output example

  • 首页-问题反馈icon.svg => home-question-feedback-icon.svg
  • 含空格 copy.jpg => with-spaces.jpg

说明:

  • 仅在 mac 下进行过测试
  • 文件名(不含后缀)会喂给翻译工具