
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Simple node module to retrieves a user avatar given an email or a user name Edit
Simple node module to retrieves a user avatar given an email or a user name from Google, gravatar or a default image.
Changelog: Change all the changes to this project here
var avatarMe = require('avatar-me')
avatarMe.fetchAvatar('jorge@ferreiro.me', 'jorge', (err, avatar) => {
if (err) console.log(err)
console.log(avatar)
})
var avatarMe = require('avatar-me')
avatarMe.configure({
defaultAvatar: 'mySuperAwesomeDefaultAvatar.png',
defaultAvatarPath: 'http://my/super/awesome/path/to/default/images/'
})
avatarMe.fetchAvatar('jorge@ferreiro.me', 'jorge', (err, avatar) => {
if (err) console.log(err)
console.log(avatar)
})
### Cache configuration using Redis. No more extra api calls!
In 0.1.0 we have introduced support to cache results with Redis! Just add redis to the avatar me config and it will create a new redis client.
var avatarMe = require('./index.js')
avatarMe.configure({
defaultAvatar: 'mySuperAwesomeDefaultAvatar.png',
defaultAvatarPath: 'http://my/super/awesome/path/to/default/images/',
cache: {
host: '127.0.0.1',
port: '6379'
}
})
avatarMe.fetchAvatar('jorge@ferreiro.me', 'jorge', (err, avatar) => {
console.log(err)
console.log(avatar)
})
FAQs
Simple node module to retrieves a user avatar given an email or a user name Edit
The npm package avatar-me receives a total of 8 weekly downloads. As such, avatar-me popularity was classified as not popular.
We found that avatar-me demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.