Comparing version 0.1.0 to 0.1.1
@@ -53,2 +53,3 @@ const async = require('async') | ||
this.fetchGoogleAvatar(email, (err, googleImage) => { | ||
if (err) nextCb(null, null) | ||
return nextCb(null, googleImage) | ||
@@ -59,2 +60,3 @@ }) | ||
this.fethGravatarImage(email, (err, gravatarImage) => { | ||
if (err) nextCb(null, null) | ||
return nextCb(null, gravatarImage) | ||
@@ -61,0 +63,0 @@ }) |
{ | ||
"name": "avatar-me", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Simple node module to retrieves a user avatar given an email or a user name Edit", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,5 +0,7 @@ | ||
# avatar-me | ||
![Avatar me logo](./assets/logo_avatar_me_npm_package_google_images.png) | ||
Simple node module to retrieves a user avatar given an email or a user name from Google, gravatar or a default image. | ||
**Changelog:** [Change all the changes to this project here](./CHANGELOG.md) | ||
## How to use it? | ||
@@ -18,2 +20,3 @@ | ||
### Basic configuration | ||
@@ -34,5 +37,5 @@ ```javascript | ||
## Add redis cache. No more extra api calls! | ||
### Cache configuration using Redis. No more extra api calls! | ||
In 0.0.6 we have introduced support to cache results with Redis! | ||
In **0.1.0** we have introduced support to cache results with Redis! | ||
Just add redis to the avatar me config and it will create a new redis client. | ||
@@ -39,0 +42,0 @@ |
126492
9
148
63