Socket
Socket
Sign inDemoInstall

@arifszn/meme-js

Get memes on browser/server


Version published
Maintainers
1

Readme

Source

meme.js

Get memes on browser/server.

Description

meme.js is a JavaScript package to get bulk memes. Supports both browser and server.

You may be interested in also:

Installation

Install via NPM.

npm install @arifszn/meme-js

Or install via Yarn.

yarn add @arifszn/meme-js

You can also try it online.

Usage

Import

const { getMeme } = require('@arifszn/meme-js');

Or

import { getMeme } from '@arifszn/meme-js';

Get 1 meme

getMeme().then((result) => {
  console.log(result);
});

Get 20 memes

getMeme({
  total: 20,
}).then((result) => {
  console.log(result);
});

Options

PropertyTypeDescriptionDefault
totalnumberHow many memes to get. Max is 201
allowNSFWbooleanAllow NSFW content in resultstrue
allowGIFbooleanAllow GIF content in resultstrue

Sample Response

[
  {
    id: 'abcxyz',
    title: 'Meme title',
    postLink: 'https://redd.it/abcxyz',
    image: 'https://i.redd.it/example.jpg',
    thumbnail: 'https://a.thumbs.redditmedia.com/example.jpg',
    subreddit: 'example',
    NSFW: false,
    spoiler: false,
    createdUtc: 1644549590,
    upVotes: 464,
    upVoteRatio: 1.0,
  },
];

Contribute

To contribute, see the Contributing guide.

Support

Buy Me A Coffee

License

meme.js is licensed under the MIT License.

Keywords

FAQs

Last updated on 01 Jun 2022

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