2.2.4 • Published 3 years ago

zhconvertor v2.2.4

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

zhConvertor

Convert Chinese Simp to Trad or Trad to Simp

Installation

npm i zhconvertor --save

Usage

  1. Basic usage
import zhConvertor from 'zhconvertor';

zhConvertor.s2t('发现了家新理发店');
// 發現了家新理髮店

zhConvertor.t2s('測試~');
// 测试~
  1. All in one method
import zhConvertor, { ConvertType } from 'zhconvertor';

zhConvertor.convert('打扫衛生', ConvertType.t2s);
// 打扫卫生

zhConvertor.convert('打扫衛生', ConvertType.s2t);
// 打掃衛生

zhConvertor.convert('打扫衛生', ConvertType.dont);
// 打扫衛生

License

MIT License

2.2.4

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago