gravatar

client-side gravatar component

  • 所有者: webmodules/gravatar
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者webmodules/gravatar
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证
所有者活动
创建于2012-07-04 18:24:11
推送于2023-07-26 14:27:50
最后一次提交2015-03-16 15:59:48
发布数11
最新版本名称1.1.1 (发布于 2015-03-16 15:59:48)
第一版名称0.0.1 (发布于 2012-07-04 11:29:30)
用户参与
星数68
关注者数15
派生数13
提交数65
已启用问题?
问题数3
打开的问题数1
拉请求数6
打开的拉请求数1
关闭的拉请求数2
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?