Socket
Socket
Sign inDemoInstall

@jdeurt/ifunny-api

Package Overview
Dependencies
42
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jdeurt/ifunny-api

Unofficial iFunny API. Can do basic interactions with memes such as liking and commenting and can also let you programatically upload your own.


Version published
Maintainers
1
Created

Readme

Source

ifunny-api

Unofficial iFunny API. Can do basic interactions with memes such as liking and commenting and can also let you programatically upload your own.

Installation

npm i @jdeurt/ifunny-api

Usage

const IFunnyClient = require("@jdeurt/ifunny-api");

const bot = new IFunnyClient();

(async function() {
    await bot.login({
        email: "your@email.address",
        password: "password"
    });

    // Cycle through trending memes
    const trending = await bot.getTrending();
    const memeFeed = await bot.getFeed(trending[0]);

    for (let memePath in memeFeed) {
        const meme = await bot.getMeme(memePath);

        // Comment, like, and close each meme in the feed
        await meme.comment("I am using the @jdeurt/ifunny-api package!");
        await meme.like();
        await meme.done();
    }

    // Upload your own meme!
    await bot.uploadMeme({
        filePath: "/path/to/meme",
        description: "optional meme description",
        tags: [
            "optimal",
            "meme",
            "tags"
        ]
    });
})();

More documentation coming soon!

FAQs

Last updated on 23 Nov 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc