1.0.4 • Published 4 years ago

cstc v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

CSTC

简中繁中互转

安装

    npm install cstc  -g
    yarn global add cstc

使用

  cstc hello.txt
  # out ->  hello.coverted.txt
  # 或
  cstc hello.json
  # out ->  hello.coverted.json

举例

JSON 文件

文件内容

["一些简体中文", "另一些简体中文", "还有一些简体中文", "中文里掺杂了English"]

转换后的内容

[
  ["一些简体中文", "一些簡體中文"],
  ["另一些简体中文", "另一些簡體中文"],
  ["还有一些简体中文", "還有一些簡體中文"],
  ["中文里掺杂了English", "中文裡摻雜了English"]
]

TXT 文件(.txt)

文件内容

一些简体中文
另一些简体中文
还有一些简体中文
中文里掺杂了English

转换后的内容

一些简体中文
一些簡體中文
另一些简体中文
另一些簡體中文
还有一些简体中文
還有一些簡體中文
中文里掺杂了English
中文裡摻雜了English

使用的依赖

lossless-simplified-chinese
esbuild
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago