Socket
Socket
Sign inDemoInstall

meme-search

Package Overview
Dependencies
47
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    meme-search

Meme search via a keyword. Returns array of memes. No API key needed.


Version published
Maintainers
1
Created

Readme

Source

Meme search via a keyword. Returns array of memes. No API key needed.

npm i -S meme-search

Currently grabs them from /r/dankmemes subreddit (or another subreddit of your choice). No API key needed.

Usage

var memeSearch = require('meme-search')

// args: keyword, callback
memeSearch('chicken', (err, res) => {
    console.log(res) // Array of meme objects, each meme object of the format { title, image_url }
})

// args: keyword, ops, callback
memeSearch(
    'chicken',
    {
        'subreddit': 'dankmemes', // dankmemes (default), memes, etc
        'sort': 'relevance' // optional: top, new, relevance (default)
    },
    (err, res) => {
    console.log(res) // Array of meme objects, each meme object of the format { title, image_url }
})

FAQs

Last updated on 23 Feb 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