Open source Simple Transform library OPENCC support Node.js

Source: Internet
Author: User
Keywords Open source nbsp; http user interface
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.