1.0.2 • Published 6 years ago

chinese-s2t-pro v1.0.2

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

chinese-s2t-pro NPM version

介绍

中文简繁体互相转换

安装

npm install chinese-s2t-pro

或者

yarn add chinese-s2t-pro

使用方法

简体转繁体

const {simpleChar2TC, simpleLine2TL } = require('chinese-s2t-pro')
//单个汉字转换成繁体
simpleChar2TC('云');
//雲

//整句、整篇汉字转繁体
simpleLine2TL('曾经沧海难为水,除去巫山不是云');
//  曾經滄海難為水,除去巫山不是雲

繁体转简体

莫着急,马上就好