@gravatar/js
Version:
Typescript friendly, email to gravatar generator which works seamlesly in Node, Browser and in Electron
11 lines (10 loc) • 334 B
TypeScript
declare type IProtocol = 'http' | 'https';
declare type IOptions = {
email: string;
md5Hash?: string;
protocol?: IProtocol;
size: number;
defaultImage: '404' | 'mp' | 'identicon' | 'monsterid' | 'wavatar' | 'retro' | 'robohash' | 'blank';
};
export declare function Gravatar(options: IOptions): string;
export {};