🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

memegen-m2k

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memegen-m2k

Generate Memes with the help of APIMeme Meme Generator

1.0.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

Memegen

Generate Memes with the help of API Meme Meme Generator. Support the official API website here.

Buy Me A Coffee

Installation

npm i memegen-m2k --save

or

yarn add memegen-m2k

How to use

Import Library

const MemeGen = require('memegen-m2k');

Get All the meme options

console.log(MemeGen.getMemeOptions().length)

Generate Meme Image URL

const list = MemeGen.getMemeOptions();
const index = parseInt(Math.random() * list.length);
const meme = list[index]; // Pick one at random 

// top and bottom text of the meme
const topText = "When she says no"
const topBottom = "When he says no" 

// print out image link of the meme
console.log(MemeGen.generate(meme, topText, topBottom))

Keywords

memegen

FAQs

Package last updated on 07 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts