Skip to content

v1.3.1

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 07 Jun 16:23

No Dependencies npm package

Comparing Changes: v1.3.0...v1.3.1

  • 📖 doc: Update README.md 0bc2244
  • 📖 doc: Update README.md 86e355c
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è", "!"]