How to use the gravatar.avatarURL function in gravatar

To help you get started, we’ve selected a few gravatar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ryanramage / question-flow / lib / common.js View on Github external
exports.getGravatar = function(userCtx, size) {
    if (!size) size = 16

    return gravatar.avatarURL({
        email : userCtx.name,
        size : size,
        default_image : 'mm'
    });
}

gravatar

Gravatar Node.js library

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis