Skip to content

rafaelpivatto/monkeyuser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MonkeyUser

It`s a fan library to allow fetch random comic strip in monkeyuser.com, as described by authors:

All in all it’s an effort of two inappropriate developers trying to make others laugh. MonkeyUser was created out of a desire to bring joy to people working in IT by making life a little less boring, but mostly because it’s a lot of fun for us.

Features

  • Fetch and return a random and single comic strip between 200+ comics in total.

Installing

$ npm install monkeyuser

Usage example

const monkeyuser = require("monkeyuser");

monkeyuser
  .getRandomComic()
  .then(response => {
    // handle success
    console.log(response);
  })
  .catch(error => {
    // handle error
    console.log(error);
  });

Response example

{
  "data": {
    "img": "https://www.monkeyuser.com/assets/images/2017/72-santas-smart-contract.png",
    "title": "Santa's Smart Contract",
    "link": "https://www.monkeyuser.com/2017/santas-smart-contract/",
    "pubDate": "Sun, 24 Dec 2017 02:00:00 +0200",
    "copyright": "https://www.monkeyuser.com/"
  },
  "success": true
}

Copyright

All images rights reserved to monkeyuser.com

About

Monkey User lib to fetch random images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published