🖼
Gravatar
is a node library to generate gravatar image url.
Via npm :
npm i @xn-02f/gravatar
Note
This library was moved to ESM from v2
.
If ESM doesn't work well with your node version, switch to the 1.x
version for CJS compatibility.
const gravatar = require('@xn-02f/gravatar')
const email = '[email protected]'
const options = {size: '80', default: '404'}
gravatar(email, options)
Parameter | Description |
---|---|
string The gravatar email url. |
|
options | object Query string options. Like: size , default , rating , forcedefault and others. |