octocat-images
:octocat: Get or save octocat image from octodex.gituhb.com
Install
With npm do:
npm install octocat-images
Example Usage
'use strict';let OctoCatCrawler = ;let crawler = ; // List all octocat imagescrawler; // Give you a random choice of octocat imagecrawler;
APIs
crawler.list(cb)
Return an array include all octocat instances.
cb(err, octocats)
fires with the error or the octocats
instances will be returned.
crawler.choice(cb)
Return a random choice of octocat instance.
cb(err, octocats)
fires with the error or the octocats
instance will be returned.
octocat.save(dir)
Save the images. The images directory dir
is required.
license
MIT