gravatar

client-side gravatar component

  • Owner: webmodules/gravatar
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

gravatar

Generate client-side gravatars. Testing
page
.

Installation

$ component install learnboost/gravatar-component

API

options

Most API calls take an option used to configure the url.

Options are the query string parameters described in the gravatar documentation

  • s - size
  • d - default image url or {404,mm,identicon,monsterid,wavatar,retro,blank}
  • r - one of {g,pg,r,x}
  • forcedefault - force default image

.url(email, options)

Return the gravatar image url for an email

.img(email, options)

Creates an avatar <img> element

.profile(email, callback(err, profile))

Looks up a profile

.username(email, callback(err, username))

Shortcut that calls .profile to get a username from an email.

Test

  • Build example component doing make
  • Open test/index.html file

License

MIT

Main metrics

Overview
Name With Ownerwebmodules/gravatar
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:
所有者活动
Created At2012-07-04 18:24:11
Pushed At2023-07-26 14:27:50
Last Commit At2015-03-16 15:59:48
Release Count11
Last Release Name1.1.1 (Posted on 2015-03-16 15:59:48)
First Release Name0.0.1 (Posted on 2012-07-04 11:29:30)
用户参与
Stargazers Count68
Watchers Count15
Fork Count13
Commits Count65
Has Issues Enabled
Issues Count3
Issue Open Count1
Pull Requests Count6
Pull Requests Open Count1
Pull Requests Close Count2
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private