node-ecdict-sqlite-lastest
v0.0.1
Published
Node.js Interface for ECDICT
Downloads
2
Maintainers
Readme
node-ecdict
Node.js Interface for ECDICT
简介
提供了一个英汉字典 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