node-mudnames
Mudnames for NodeJS
For the moment all the functions are synchronous, it will change soon (so the API).
Usage
You can simply use it with the embedded dictionnaries in the ./data
directory
var mudnames = ;
Get the list of availabe dictionnaries
mudnames;
Get information on a particular dictionnary
mudnames;
And of couse generate one or more names from available dictionnary (or random)
mudnames;mudnames;
Custom dictionnary files
You can also use you own dictionnary files by instanciating a generator and use it as above
var mudnames = ;mudnames;mudnames;
Benchmark against PHP version from xrogaan
The scripts were executed 20 times each and i kept the average on a ubuntu64 core2@3.4Ghz
Generation of 200 000 random names from dicts in the repo directory. NodeJS : 1.164 sec PHP : 182.379 sec PHP (corrected script) : 6.302 sec
License
MIT