Get the gravatar image link by email address with specefic size.
Install the latest version:
npm i avatar-image
Require the module in your code & start using:
const avatar = require('avatar-image');
It's very easy to use, It will give you generated link from your email address with a default size of 80 px.
avatar(email, size)
this function allows you to use two pass email and size.
after import just use anywhere from your file like this:
var imgLink = avatar('youremail@example.com', 128)
<img src='imgLink'
/>
var imgLink = avatar('youremail@example.com')
<img src='imgLink'
/>
If you face any issue with this package please let us know about it by creating an issue on Github. Any kind of suggestion will be appreciated.
Please feel free to mail me hasanuzzamanbe@gmail.com
For faster response please text me on https://www.hasanuzzaman.com live chat.