Comparing Changes: v1.3.0...v1.3.1
npm install togscc --save
import data from 'togscc/data/characters.json';
// data 输出 ===>
[
"一","乙","二","十","丁","厂","七","卜","八","人","入","儿","匕","几",
// ....
]
import characters from 'togscc/dist/characters';
import pinyin from 'togscc/dist/pinyin';
import raw from 'togscc/dist/pinyin.raw';
import togscc from 'togscc';
console.log(togscc['正']) // => ["zhēng","zhèng"]
console.log("你好世界!".split('').map((han) => togscc[han] ? togscc[han] : han))
// => ["nǐ", ["hǎo","hào"], "shì", "jiè", "!"]