Skip to content

kevincobain2000/node-edict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

npm install node-edict

or

npm install https://github.com/kevincobain2000/node-edict/tarball/master

Usage

var Edict = require("node-edict");
edict = new Edict;

Note

If running for the first time then please wait for around 1 minute while the parser reads the dict file and enters the entries to REDIS.

Run the following

edict = new Edict;
edict.setDB(2);
edict.redisSetEntries(function(callback){
    
});

Once the Redis is set Already

edict.setDB(2); //selects 2 on Redis
edict.get('私',function(result){ 
    console.log(result.Gloss);
    console.log(result.PRON);
}); 

Must

Redis server running

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published