Random Cat
Summary
A library for generating URLs of random cat pictures.
Although by default this library will generate URLs of random cats, you can specify other categories. All of the categories are listed at the bottom of lorempixel's website. Meow.
Installation
npm install --save random-cat
Usage
var randomCat = ; // Random cat picture of various widths and heights// Possible values: 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600// http://lorempixel.com/100/600/catsvar url = randomCat; // Random cat picture of specific size// http://lorempixel.com/120/600/catsvar urlWithSize = randomCat; // Don't like cats? Try another category// Possible values: abstract, animals, business, cats, city, food, nightlife, fashion, people, nature, sports, technics, transport// http://lorempixel.com/120/500/peoplevar urlOfPeople = randomCat; // All of the options// http://lorempixel.com/g/200/700/food/2/om%20nom%20nomvar urlWithAllOptions = randomCat;
Tests
npm installnpm test
Questions?
Bugs?
License
This project is distributed under the MIT license.