A small async wrapper to get reddit memes (post with images)
from the best Reddits memes, this project is actively used as API by HUGE in HugeMemesAPI
You can also get this package for other programming languages:
Packages |
---|
Java |
TS/JS |
Inside your npm project run the following command
npm install @blad3mak3r/reddit-memes --save
Or
npm i -S @blad3mak3r/reddit-memes
1. Fork this repository.
git clone https://github.com/<YOUR_USERNAME_HERE>/RedditMemes.git
cd RedditMemes
npm install
npm run build
npm run test
npm run examples
You can see how this project works by watching the live demo.
This package is perfect if you are using TypeSript in your project since it includes all the necessary definitions to avoid errors.
import { getRandomMeme, getLocalRandomMeme } from '@blad3mak3r/reddit-memes';
import * as memes from '@blad3mak3r/reddit-memes';
getRandomMeme().then(console.info).catch(console.error);
getRandomMeme("memes").then(console.info).catch(console.error);
The country codes supported at the moment are
en
,es
,fr
,ru
,de
,it
.
getLocalRandomMeme("es").then(console.info).catch(console.error);
This project is under the Apache 2.0 license, read license.