1.0.0 • Published 6 years ago

dog-breeds v1.0.0

Weekly downloads
89
License
MIT
Repository
github
Last release
6 years ago

dog-breeds Build Status

Get dog breeds

A list of 514 dog breeds, including breed origin and a link to an image of the breed on Wikimedia.

The list is a JSON file and can be used anywhere.

Install

$ npm install dog-breeds

Usage

const dogBreeds = require('dog-breeds');

dogBreeds.random();
/*
{
  "name": "Catahoula Leopard Dog",
  "origin": "United States",
  "imageURL": "https://upload.wikimedia.org/wikipedia/commons/7/76/Louisiana_Cataholula_Leopard_Dog_-_Coahoma_Arkansas.JPG"
}
*/

API

.all

Type: Array

Dog breeds in alphabetical order.

.random()

Type: Function

Random dog breed.

License

MIT © Chris Vogt