基于 simplecc-rs 的 opencc 简单替代
编译成 WASM 摆脱编译 Node Addon 的烦恼
import { simplecc } from "simplecc-wasm";
// const { simplecc } = require("simplecc"); // commonjs
simplecc("发财了去植发", "s2t"); // '發財了去植髮'
"s2t"
"t2s"
"s2tw"
"s2hk"
"s2twp"
"hk2s"
基于 simplecc-rs 的 opencc 简单替代 (WASM)
基于 simplecc-rs 的 opencc 简单替代
编译成 WASM 摆脱编译 Node Addon 的烦恼
import { simplecc } from "simplecc-wasm";
// const { simplecc } = require("simplecc"); // commonjs
simplecc("发财了去植发", "s2t"); // '發財了去植髮'
"s2t"
"t2s"
"s2tw"
"s2hk"
"s2twp"
"hk2s"