memegen-m2k
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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))

Package Sidebar

Install

npm i memegen-m2k

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

29.3 kB

Total Files

7

Last publish

Collaborators

  • m2kdevelopments