How to use gravatar-url - 6 common examples

To help you get started, we’ve selected a few gravatar-url 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 algolia / npm-search / src / formatPkg.js View on Github external
function getGravatar(obj) {
  if (
    !obj.email ||
    typeof obj.email !== 'string' ||
    obj.email.indexOf('@') === -1
  ) {
    return defaultGravatar;
  }

  return gravatarUrl(obj.email);
}
github Remchi / bookworm-react / src / components / navigation / TopNavigation.js View on Github external
const TopNavigation = ({ user, logout, hasBooks }) => (
  <menu>
    
      Dashboard
    
    {hasBooks &amp;&amp; (
      
        Add New Book
      
    )}

    
      }&gt;
        
           logout()}&gt;Logout
        
      
    
  </menu>
);

gravatar-url

Get the URL to a Gravatar image from an identifier, such as an email

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular gravatar-url functions