1.1.0 • Published 5 years ago

node-ecdict v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

node-ecdict

Node.js Interface for ECDICT

npm version Build Status codecov

简介

提供了一个英汉字典 node 查询接口, 数据库为 skywind3000/ECDICT
查询所得字段含义与引用的数据库保持完全一致

使用方法

npm install --save node-ecdict
const { search, batchSearch } = require('node-ecdict');
search('test')
  .then(result => {
    console.log(result);
  });

batSearch(['test', 'nothing', 'asjlfdjal'])
  .then(result => {
    console.log(result); // result is an Array
  });

License

MIT