New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fetch-avatar

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-avatar

A package to fetch avatars from various websites

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Fetch-Avatar

Fetch avatars from various websites using usernames, IDs or emails.

NPM NPM NPM

Install

npm install fetch-avatar

Usage:

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

API Keys:

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.

Default Avatars

This package will attempt to detect and remove default avatars from providers. If a default avatar is detected the response will be null.

Supported:
Planned:

FAQs

Package last updated on 17 Mar 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc