opencc-f2f-cli

1.0.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i opencc-f2f-cli

Weekly Downloads

2

Version

1.0.5

License

Apache 2.0

Unpacked Size

5.36 kB

Total Files

5

Last publish

Collaborators

  • arshown791119
  • yutingkuang