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

2.0.1 • Public • Published

memejs

Retrieve memes easily from reddit.

Downloads

Installation

npm install memejs --save

How to use memejs

const { meme } = require('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',
  url: 'https://i.redd.it/zdaqicupnzq41.jpg',
  author: 'godofeverythingelse',
  subreddit: 'me_irl',
  created: '2020-03-05 19:55:59.000',
  created_utc: '2020-03-05 11:55:59.000'
}

Note: V2 is now out, fully reworked with TypeScript. No need for callbacks anymore!

Created by Kyle and Nuno (nuno#4160)

Honorable mention marshallasch --> reasoning

Readme

Keywords

Package Sidebar

Install

npm i memejs

Weekly Downloads

49

Version

2.0.1

License

MIT

Unpacked Size

8.65 kB

Total Files

8

Last publish

Collaborators

  • nuno2202
  • dvhe