opencc-f2f-cli
v1.0.5
Published
把語系檔案透過cli方式,利用opencc套件,做中文轉換
Downloads
2
Readme
Open Chinese Convert Folder to Folder (File to File) CLI
Installation 安裝 npm
npm install -g opencc-f2f-cli
Usage
# file to file covert
opencc-f2f-cli -s ./locales/zh-tw/error.js -d ./locales/zh-cn/
# folder to folder covert
opencc-f2f-cli -s ./locales/zh-tw/ -d ./locales/zh-cn/
# use wildword to match specific file extension
opencc-f2f-cli -s ./locales/zh-tw/\*\*/\*.js -d ./locales/zh-cn/
Help
opencc-f2f-cli -h
Usage: opencc-f2f-cli [options]
Options:
-c, --covert <type> What type of covert: [s2t|t2s|s2tw|tw2s|s2hk|hk2s|s2twp|tw2sp|t2tw|hk2t|tw2t] (default: "tw2sp")
-s, --source <path> source folder or file
-d, --destination <path> destination folder
-h, --help display help for command
全部 covert type 請參考原套件 Open Chinese Convert 說明。
Reference
- Open Chinese Convert - https://github.com/BYVoid/OpenCC