Skip to content

HiuYanChong/node-ecdict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
  });

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

License

MIT

About

Node.js Interface for ECDICT

Resources

License

Stars

Watchers

Forks

Packages

No packages published