gravatar

client-side gravatar component

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-05 02:24:11
推送於2023-07-26 22:27:50
最后一次提交2015-03-17 06:59:48
發布數11
最新版本名稱1.1.1 (發布於 2015-03-17 06:59:48)
第一版名稱0.0.1 (發布於 2012-07-05 02:29:30)
用户参与
星數68
關注者數13
派生數13
提交數65
已啟用問題?
問題數3
打開的問題數1
拉請求數6
打開的拉請求數1
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?