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

4.0.0 • Public • Published

imgflip

The memiest Imgflip API wrapper around!

Install

$ npm i imgflip

Usage

import Imgflip from 'imgflip'

// https://imgflip.com/signup
const imgflip = new Imgflip({
  username: `YOUR_USERNAME`,
  password: `YOUR_PASSWORD`,
})

// https://api.imgflip.com/get_memes
// Get top 100 popular meme formats
const memes = await imgflip.memes()
console.log(memes)

// Caption and download a great meme!
await imgflip.meme(`100777631`, {
  captions: [
    `PROGRAMMERS`,
    `THIS PACKAGE`,
    `IS THIS THE GREATEST PACKAGE EVER?`,
  ],
  path: `pigeon.png`,
})

Contributing

Stars are always welcome!

For bugs and feature requests, please create an issue.

License

MIT © Tomer Aberbach

Package Sidebar

Install

npm i imgflip

Weekly Downloads

101

Version

4.0.0

License

MIT

Unpacked Size

7.31 kB

Total Files

5

Last publish

Collaborators

  • tomeraberbach