Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Get random octodex images from github's octodex.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE-MIT
README.md
octodex.js
package.json
test.js

README.md

octodex Build Status

Get random octodex img URLs.

Getting Started

Install the module with: npm install octodex

var cat = require('octodex');

cat.img(function(err,url){
    if(!err){
        console.log(url);
       // This will give a random img url.
    }
});

You can also pass the second parameter indicating to the module to do in memory cache of the parsed content. Using it, he will perform the parce only once. making the other invocations faster.

var cat = require('octodex');

cat.img(function(err,url){
    if(!err){
        console.log(url);
       // This will give a random img url.
    }
}, true);

License

Copyright (c) 2013 Hemanth.HM
Licensed under the MIT license.

Something went wrong with that request. Please try again.