Go to file
2021-01-13 21:08:47 +00:00
.gitlab Upload New File 2020-12-30 18:31:10 +00:00
.eslintrc Add aslant to gitlab project ci 2021-01-13 21:08:47 +00:00
.gitignore Fix 2020-12-20 19:39:03 +00:00
.gitlab-ci.yml Add aslant to gitlab project ci 2021-01-13 21:08:47 +00:00
.npmignore Fix 2020-12-20 19:39:03 +00:00
CODE_OF_CONDUCT.md Resolve "Create documentation" 2021-01-13 20:38:31 +00:00
CONTRIBUTING.md Resolve "Create documentation" 2021-01-13 20:38:31 +00:00
index.js Add aslant to gitlab project ci 2021-01-13 21:08:47 +00:00
LICENSE Resolve "Create documentation" 2021-01-13 20:38:31 +00:00
license Resolve "Create documentation" 2021-01-13 20:38:31 +00:00
package-lock.json Add aslant to gitlab project ci 2021-01-13 21:08:47 +00:00
package.json Add aslant to gitlab project ci 2021-01-13 21:08:47 +00:00
readme.md Fix 2020-12-20 19:39:03 +00:00

random-bunny

Get a random image url from a subreddit of your choosing.

Install

$ npm install --save random-bunny

Usage

const randomBunny = require('random-bunny');

randomBunny('rabbits', 'new', (image, title) => {
    console.log(title + ": " + image);
});

API

randomBunny()

Returns a url and title for a random post to the callback. Accepts 3 arguments: subreddit, sortby ('new', 'hot', 'top'), callback(image, title)

Notes

License

MIT © Vylpes;