Skip to content

PitchBlackCat/wwf-animals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wwf-animals

It's an array of endangered species as listed by worldwildlife.org

Installation

npm install wwf-animals

Usage

import * as endangered_animals from "wwf-animals";

console.log(endangered_animals);

I use it in conjunction with rgbkrk/adjectives to create a near infinite list of random names.

Example Output

[
    {name: "African Elephant", scientific: "Loxodonta africana", status: "Vulnerable"},
    {name: "Bengal Tiger", scientific: "Panthera tigris tigris", status: "Endangered"},
    {name: "Orangutan", scientific: "Pongo abelii, Pongo pygmaeus", status: "Critically Endangered"},
    // ...
]

Project maintenance

Running py update.py will update index.js with a fresh list of endangered animals. Running ./deploy.sh will commit, push and publish