Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    gravatar-componentpublic

    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

    Keywords

    none

    install

    npm i gravatar-component

    Downloadsweekly downloads

    32

    version

    1.1.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar
    • avatar