meme-search
v1.0.5
Published
Meme search via a keyword. Returns array of memes. No API key needed.
Downloads
18
Readme
meme-search
Meme search via a keyword. Returns array of memes. No API key needed.
npm i -S meme-search
Currently grabs them from /r/dankmemes subreddit (or another subreddit of your choice). No API key needed.
Usage
var memeSearch = require('meme-search')
// args: keyword, callback
memeSearch('chicken', (err, res) => {
console.log(res) // Array of meme objects, each meme object of the format { title, image_url }
})
// args: keyword, ops, callback
memeSearch(
'chicken',
{
'subreddit': 'dankmemes', // dankmemes (default), memes, etc
'sort': 'relevance' // optional: top, new, relevance (default)
},
(err, res) => {
console.log(res) // Array of meme objects, each meme object of the format { title, image_url }
})