Skip to content

modella plugin for generating gravatars for node.js and browser

Notifications You must be signed in to change notification settings

modella/gravatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

modella plugin for generating gravatars for node.js and browser

Resources

Stars

Watchers

Forks

Packages

No packages published