JaredCaprio / coupling-dict-chinese

πŸ‡¨πŸ‡³ Chinese dictionary. Fork from node-cc-cedict with updated dependencies and database.

Home Page:https://learncoupling.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cedict

This is a fork of coupling-dict-chinese. The testing library mocha has been removed because it was causing vulnerabilities which could not be easily fixed by running npm audit fix.

coupling-dict-chinese provides a convenient asynchronous JavaScript API for the popular CC-CEDICT Chinese-English dictionary. This is a 'batteries-included' library and comes with a premade SQLite conversion of the entire dictionary.

Single search method defaults to traditional if the entire word provided is in traditional characters, otherwise converts everything to simplified and performs that lookup instead.

Usage

const cedict = require('coupling-dict-chinese');

cedict.searchByChinese('δΈ–η•Œ', words => {
  console.log(words);
});

License

MIT

About

πŸ‡¨πŸ‡³ Chinese dictionary. Fork from node-cc-cedict with updated dependencies and database.

https://learncoupling.com


Languages

Language:JavaScript 100.0%