1.0.0 • Published 4 years ago
node-meme v1.0.0
Node-Meme
PREREQUISITES
- node.js
INSTALLATION
# Run this to install the package to your local project.
$ npm i node-meme
# Run this to instead install the module globally so you can use it anywhere.
$ npm i node-meme -g
BASIC USAGE
var meme = require('node-meme');
meme.requestmeme('image').then(img => {
console.log(img)
})
// will just return a image link.
meme.requestmeme('json').then(img => {
console.log(img)
})
// will return {"postLink":"reddit post link","subreddit":"dankmemes","title":"","url":"meme image","nsfw":false,"spoiler":false}
node-meme is powered by https://meme-api.herokuapp.com/gimme
1.0.0
4 years ago