Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tomeraberbach/imgflip

📷 A module for the interacting with the Imgflip API.
https://github.com/tomeraberbach/imgflip

api api-wrapper image-captions images imgflip imgflip-api meme-generator memes node-js node-module nodejs npm-module npm-package

Last synced: 20 days ago
JSON representation

📷 A module for the interacting with the Imgflip API.

Awesome Lists containing this project

README

        


imgflip



version


CI


Sponsor


The memiest Imgflip API wrapper around!

## Install

```sh
$ npm i imgflip
```

## Usage

```js
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`,
})
```

![](./pigeon.png)

## Contributing

Stars are always welcome!

For bugs and feature requests,
[please create an issue](https://github.com/TomerAberbach/imgflip/issues/new).

## License

[MIT](https://github.com/TomerAberbach/imgflip/blob/main/license) ©
[Tomer Aberbach](https://github.com/TomerAberbach)