Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 539 Bytes

Readme.md

File metadata and controls

38 lines (25 loc) · 539 Bytes

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 : '[email protected]',
  password : 'test'
});

user.save(function(err) {
  console.log(user.avatar());
});

License

MIT