New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

memejs-c456

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memejs-c456

Get the best memes with ease!

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

memejs

Get the best memes with ease!

Installation

npm install memejs

Usage

To get the full JSON output:

var meme = require('memejs');

meme(function(data, err) {
  if (err) return console.error(err);
  console.log(data);
});

To get the meme title:

var meme = require('memejs');

meme(function(data, err) {
  if (err) return console.error(err);
  console.log(data.title[0]);
});

To get the meme url:

var meme = require('memejs');

meme(function(data, err) {
  if (err) return console.error(err);
  console.log(data.url[0]);
});

To get the author:

var meme = require('memejs');

meme(function(data, err) {
  if (err) return console.error(err);
  console.log(data.author[0]);
});

to get the subreddit:

var meme = require('memejs');

meme(function(data, err) {
  if (err) return console.error(err);
  console.log(data.subreddit[0]);
});

To get the time the meme was created:

var meme = require('memejs');

meme(function(data, err) {
  if (err) return console.error(err);
  console.log(data.created[0]);
});

To get the UTC time the meme was created:

var meme = require('memejs');

meme(function(data, err) {
  if (err) return console.error(err);
  console.log(data.created_utc[0]);
});

To filter subreddits:

var meme = require('memejs');

meme('crappydesign', function(data, err) {
  if (err) return console.error(err);
  console.log(data);
});

Possible subreddits to filter are:

crappydesign
dankmemes
me_irl
wholesomememes
memeeconomy
adviceanimals
comedycemetery
memes
prequelmemes
terriblefacebookmemes
pewdiepiesubmissions
funny
teenagers

Created by Nuriel Taha (nuno#4160)

FAQs

Package last updated on 02 Oct 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc