node-ecdict

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i node-ecdict

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

191 MB

Total Files

11

Last publish

Collaborators

  • hiu_yan_chong