Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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 2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.