๐ Random meme generator module for Node.js
-
๐ฒ Fresh memes - Random image posts from Lemmy meme communities
-
๐๏ธ Text and Image - Get random memes as text & image
-
๐ป CLI - Run
npx random-memesto get a meme in your terminal -
๐ฆ Zero dependencies - Uses the
fetchbuilt into Node.js, ships TypeScript types
Installation:
npm install random-memesRequires Node.js 20 or newer.
Get random meme:
const memes = require("random-memes");
const fetchMeme = async () => {
const meme = await memes.random();
console.log(meme);
};With ES modules:
import { random } from "random-memes";
const meme = await random();From the command line:
npx random-memesWarning
memes.reddit() is deprecated and will be removed in v5. Reddit blocks most unauthenticated requests, so it fails with HTTP 403 in most environments. See the changelog for everything that changed in v4.
MIT LICENSE 2019-present | Halit Sever
