modella-gravatar

0.0.5 • Public • Published

gravatar

modella plugin for generating gravatars for node.js and browser.

Installation

In the browser (using component):

component install modella/gravatar

On the server:

npm install modella-gravatar

Example

var User = model('user')
  .attr('name')
  .attr('email')
  .attr('password');
 
User.use(gravatar('email', 'avatar'));
 
var user = new User({
  name : 'matt',
  email : 'mattmuelle@gmail.com',
  password : 'test'
});
 
user.save(function(err) {
  console.log(user.avatar());
});

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i modella-gravatar

Weekly Downloads

4

Version

0.0.5

License

none

Last publish

Collaborators

  • mattmueller
  • bdentino