Skip to content
modellaPublic

About

modella plugin for generating gravatars for node.js and browser

Resources

Stars

3 stars

Watchers

2 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

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 : 'mattmuelle@gmail.com',
  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

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages