gravatar 用于为node.js和浏览器生成gravatars的modella插件
头像用于为node.js和浏览器生成头像的modella插件。安装在浏览器中(使用组件): component install modella/gravatar在服务器上: npm install modella-gravatar例子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 ( functio
用户评论