2.0.2 • Published 2 years ago

@kiwitheboss/memejs v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

memejs

Retrieve memes easily from reddit.

Installation

npm install @kiwitheboss/memejs --save

How to use memejs

const { meme } = require('@kiwitheboss/memejs');

memeAsync() // Use meme('subredditname') to filter subreddits
.then(m => console.log(m)) // Get the JSON output
.catch(e => console.log(e)); // Handle any errors

Example of JSON output:

{
  title: 'Me irl', // The title of the meme
  url: 'https://i.redd.it/zdaqicupnzq41.jpg', // The image URL
  author: 'godofeverythingelse', // Optional
  subreddit: 'me_irl',  // subreddit name
  created: '2020-03-05 19:55:59.000', // Date of post
  created_utc: '2020-03-05 11:55:59.000', // UTC time
  nsfw: false // If true, the image is NSFW [NEW]
}

Note: v3 is now with more data and is more accurate.

Created by Kyle and Nuno (nuno#4160)

Honorable mention marshallasch --> reasoning

2.0.2

2 years ago

2.0.1

2 years ago