Open source Simple Transform library OPENCC support Http://www.aliyun.com/zixun/aggregation/13375.html ">node.js published 16 hours ago | Times Read | SOURCE cnode.js| 0 Reviews | Author Byvoid open-source Node.jsapi open Platform OPENCC Summary: Open Chinese Convert (OPENCC) is an open source Chinese Simplified conversion thesaurus, also provides function library (LIBOPENCC), command line simple conversion tools, manual proofing Tools, Dictionary generation program, online conversion service and circular user interface.
Open Chinese Convert (OPENCC) is an open source Chinese Simplified conversion thesaurus, also provides function library (LIBOPENCC), command line conversion tool, manual proofing tool, Dictionary generation program, online conversion service and circular user interface.
OPENCC now supports Node.js.
Installation method
npm Install OPENCC
Npm:https://npmjs.org/package/opencc
Github:https://github.com/byvoid/opencc
Online conversion: http://opencc.byvoid.com/(Code Https://github.com/BYVoid/opencc-web)
How to use
var OPENCC = require (' OPENCC ');/Load The default simplified to traditional Configvar = new OPENCC (' OPENCC '); Set conversion Modeopencc.setconversionmode (opencc.conversion_fast);//Sync Apivar converted = Opencc.convertSync ("Kanji "); Console.log (converted);//Async Apiopencc.convert (" Kanji ", function (err, converted) {console.log (converted);});
From: Cnode.js