animals

Get animals

Usage no npm install needed!

<script type="module">
  import animals from 'https://cdn.skypack.dev/animals';
</script>

README

animals Build Status

Get animals

Currently 236 animals.

The list itself is just a JSON file and can be used wherever. The list is extracted from wikipedia.

Install

$ npm install --save animals

Usage

var animals = require('animals');

animals();
//=> fox

animals();
//=> panda

animals.words;
// ['aardvark', 'albatross', ...]

API

animals()

Returns a random animal.

animals.words

Array with all the animals.

CLI

$ npm install --global animals
$ animals --help

Example
  $ animals
  lion

License

Entirely based on superb by Sindre Sorhus. MIT © Stephan Bönnemann