
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
fetch-avatar
Advanced tools
Fetch avatars from various websites using usernames, IDs or emails.
npm install fetch-avatar
For most providers you can simply pass a username or email.
If the user has an avatar you'll receive a URL, otherwise the response will be null
import { avatar } from 'fetch-avatar';
avatar.github('DrKain').then(console.log);
// https://avatars.githubusercontent.com/u/5300315
Some providers will require an API to function. I've tried to avoid this best I can but sometimes it's unavoidable. When a provider requires an API key. Please visit the GitHub wiki to see how to use these. Each provider that requires an API key or token has their own page showing how to get one.
This package will attempt to detect and remove default avatars from providers. If a default avatar is detected the response will be null
.
FAQs
A package to fetch avatars from various websites
The npm package fetch-avatar receives a total of 6 weekly downloads. As such, fetch-avatar popularity was classified as not popular.
We found that fetch-avatar 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.