npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

data-creatures

1.0.1 • Public • Published

Data-Creatures

NPM version Build status

Hard data of RPG creatures

Installation

npm install data-creatures --save

Usage

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
// elves

CLI

npm install data-creatures -g
Examples
    $ 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 plural

Contributing

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

install

npm i data-creatures

Downloadsweekly downloads

0

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability