Skip to content

meteorbelt/belt-gravatar

Repository files navigation

Meteor Belt Gravatar Build Status

Provides Gravatar API. For use with Meteor Belt applications

Installation

Meteor Belt Gravatar can be installed with Meteorite. From inside a Meteorite-managed app:

$ mrt add belt-gravatar

API

NOTE

In version v0.2.x the api has changed. Belt.Gravatar is now Gravatar

Basics

var params = {
  secure: true, // https ?
  d: encodeURIComponent('http://example.org'), // defalut
  s: 200, // size
  r: 'pg' // rating
};

var url = Gravatar.urlFromEmail('[email protected]', params);

test.equal(url, 'https://www.gravatar.com/avatar/44e00c6d4a1deab14c40c00c89844cac?d=http%3A%2F%2Fexample.org&s=200&r=pg');

About

Provides Gravatar API. For use with Meteor Belt applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published