mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 02:01:29 +10:00
🚀 release: v3.0.0
This commit is contained in:
9
apps/client/utils/getGravatarUrl.ts
Normal file
9
apps/client/utils/getGravatarUrl.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import md5Hex from 'md5-hex';
|
||||
|
||||
const getGravatarUrl = (email: string, size: number) => {
|
||||
const hash = md5Hex(email);
|
||||
|
||||
return `https://www.gravatar.com/avatar/${hash}?s=${size}&d=identicon`;
|
||||
};
|
||||
|
||||
export default getGravatarUrl;
|
||||
Reference in New Issue
Block a user