npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

xkcd-imgs

1.0.1

@hemanth

npmHomeRepoSnykSocket
Downloads:10
$ npm install xkcd-imgs
DailyWeeklyMonthlyYearly

xkcd-imgs Build Status

Get random xkcd comics.

$ npm install xkcd-imgs

Usage:

var xkcd = require('xkcd-imgs');

xkcd.img(function(err, res){
  if(!err) {
    console.log(res);
  }
});

// Would log something like:
{
  url: 'http://imgs.xkcd.com/comics/mystery_news.png',
  title: 'If you find and stop the video, but you\'ve--against all odds--gotten curious about the trade summit, just leave the tab opened. It will mysteriously start playing again 30 minutes later!'
}