Zdobądź Gravatar JavaScript

//--------------------------------------------------------
// Get Gravatar Image from Email
// npm install crypto-js
//--------------------------------------------------------
import md5 from 'crypto-js/md5';

const email  = "[email protected]";
const URL    = 'http://www.gravatar.com/avatar/';
const imgSrc = URL + md5(email).toString() + '.jpg?s=256';
//--------------------------------------------------------
KostasX