1.0.1 • Published 9 years ago
data-creatures v1.0.1
Data-Creatures
Hard data of RPG creatures
Installation
npm install data-creatures --saveUsage
var data = require('data-creatures');
data();
// return all data
// orc
// elf
// minotaur
// ...
// All options
data({
size:2, // amount
plural:true, // return words in plural
})
// return
// trolls
// elvesCLI
npm install data-creatures -gExamples
$ data-creatures
elf
$ data-creatures --plural
elves
$ data-creatures --all
orc
elf
...
Options
--all Get all the words instead of a random word
--size Get this amount of words
--plural Get words in pluralContributing
Contributions are very welcome.
If you have any new creature that are not in the list please submit.
All the hard data are in data.js
Plural words are generated by the module blakeembrey/pluralize
Irregular rules should be registred.
License
MIT