Socket
Socket
Sign inDemoInstall

ifunny-web-api

Package Overview
Dependencies
58
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ifunny-web-api

Simple API for https://ifunny.co/


Version published
Maintainers
1
Install size
6.36 MB
Created

Readme

Source

ifunny

Simple API for https://ifunny.co/

Usage

ifunny(Object: RequestOptions | function: callback(error, response))
let ifunny = require("ifunny")
ifunny({shuffle: false}, function (err, res) {
  console.log(res)
})

(async function() {
  let res = await ifunny()
  console.log(res)
})();

Output

[ { type: 'jpg',
    src: 'https://img.ifcdn.com/images/ab45b4c82485dd766884d01036d4ac24d4f32d7f_1.jpg',
    url: 'https://ifunny.co/fun/2l08Z86W?gallery=shuffle',
    tags: 'kristen, cat - iFunny :)' },
  { type: 'mp4',
    src: 'https://img.ifcdn.com/videos/e01bfd9286aea89c114848d1fd6b77f6d8dc6a522c7ca298bc503cab5045c998_1.mp4',
    url: 'https://ifunny.co/fun/ZwTgEjdh2?gallery=shuffle',
    tags: 'food - iFunny :)' },
  { type: 'gif',
    src: 'https://img.ifcdn.com/images/7acfe06b76d2c3c98114472941e6c3b9d21eafedcf11cc3a88f56d254f72c1f4_1.gif',
    url: 'https://ifunny.co/fun/o1Ivg67I1?gallery=shuffle',
    tags: 'running, treadmill - iFunny :)' },
    { ... }
]

RequestOptions

shuffle: boolean

TODO

  • Get more than 10 results
  • Add search by tags/user
  • Add ability to get comments of a specific post
  • Get iFunny feature timer?

Keywords

FAQs

Last updated on 05 Oct 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