Socket
Book a DemoInstallSign in
Socket

octodex

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

octodex

Get random octodex img URLs.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

github

FAQs

Package last updated on 05 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts