Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ui-avatars

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ui-avatars

Generate avatar images based on user initials

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
262
decreased by-34.66%
Maintainers
1
Weekly downloads
 
Created
Source

UI Avatars

Generate avatar images based on user initials.

Build status Azure DevOps tests (branch) Azure DevOps coverage Codacy Badge MIT License npm

Usage

After installing, simply import it in your file.

const uiavatars = require("ui-avatars");

Consume the generateAvatar() API to get an avatar URL that you can use directly as an image. Supply the settings object to this method to generate the avatar image URL accordingly. You can either supply one or all settings, based on your requirement. All settings are pretty self-explanatory.

var avatarURL = uiavatars.generateAvatar({
            uppercase: true,
            name: "Tony Stark",
            background: "990000",
            color: "000000",
            fontsize: 0.5,
            bold: true,
            length: 2,
            rounded: true,
            size: 250
        }); 

Examples

Clicking on the images below opens the image in a browser window.

Sample image 1 Sample image 2 Sample image 3

Release notes

Release notes can be found here.

License

This npm package is licensed under MIT. UI Avatars may be licensed separately.

Credits

UI Avatars developed by Lasse Rafn / GitHub.
This npm package is developed by Clyde D'Souza.

Keywords

FAQs

Package last updated on 26 May 2019

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