No description
Find a file
2016-04-27 15:06:24 -04:00
.editorconfig create project 2016-04-27 15:06:24 -04:00
.gitattributes create project 2016-04-27 15:06:24 -04:00
.gitignore create project 2016-04-27 15:06:24 -04:00
.travis.yml create project 2016-04-27 15:06:24 -04:00
index.js create project 2016-04-27 15:06:24 -04:00
license create project 2016-04-27 15:06:24 -04:00
package.json create project 2016-04-27 15:06:24 -04:00
readme.md create project 2016-04-27 15:06:24 -04:00
test.js create project 2016-04-27 15:06:24 -04:00

random-puppy Build Status

Get a random puppy image url.

Install

$ npm install --save random-puppy

Usage

const randomPuppy = require('random-puppy');

randomPuppy()
    .then(url => {
        console.log(url);
    })

//=> 'http://imgur.com/IoI8uS5'

API

randomPuppy()

Returns a random puppy image from http://imgur.com/ from https://www.reddit.com/r/puppy

randomPuppy(subreddit)

Returns a random image from the selected subreddit. Warning: We cannot promise it will be a puppy.

License

MIT © Dylan Greene