xkcd-imgs

Get random img URL and alt text from XKCD

npm install xkcd-imgs
8 downloads in the last day
8 downloads in the last week
23 downloads in the last month
$ npm install xkcd-imgs

# In node code :

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

xkcd.img(function(res){
  console.log(res);
});

// Would log :
{ url: 'http://imgs.xkcd.com/comics/mystery_news.png',
  img_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!' 
}
npm loves you