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

get-meme-urls

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

get-meme-urls

Get meme urls

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

get-meme-urls get-meme-urls.svg

Get meme urls for specified query (default: agile).

Usage

const getMemeUrls = require('get-meme-urls');

getMemeUrls('tdd').then(result => {
  // do something with result (array of urls)
  // possible result is:
  // [
  //   // previous 5 urls
  //   'https://cdn.meme.am/cache/instances/folder387/400x/76284387.jpg',
  //   'https://cdn.meme.am/cache/instances/folder148/400x/76284148.jpg',
  //   // and next 5 urls
  // ]
}).catch(err => {
  // handle err
});

API

getMemeUrls([searchQuery][, options])

Returns a Promise which will be resolved with array of meme urls or rejected with an appropriate error.

searchQuery

Type: string Default: agile

The search query.

options
apiKey

Type: string Default: demo

Memegenerator API KEY. Can be set globally with the MEMEGENERATOR_API_KEY environment variable.

pageIndex

Type: number

Page index of the requested result set. If not specified will not pass in with query and will use default value from the memegenerator's api - 0.

pageSize

Type: number

Page size of the requested result set. If not specified will not pass in with query and will use default value from the memegenerator's api - 12.

License

MIT

Keywords

FAQs

Package last updated on 22 Oct 2017

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