Socket
Socket
Sign inDemoInstall

getavataaars

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    getavataaars

Generate an avatar by mixing-and-matching various elements.


Version published
Maintainers
1
Install size
23.7 kB
Created

Readme

Source

Get Avataaars

Generate an avatar by mixing-and-matching various elements.

Build status Azure DevOps tests Azure DevOps coverage Quality Gate Status Maintainability Rating MIT License npm

Usage

After installing, simply import Get Avataaars in your file.

const avatars = require("getavataaars");

Consume the generateAvatar() API to get an avatar URL that you can use directly as an image. Supply the settings object to customize your avatar. All settings are pretty self-explanatory and matches the web editor. Adding the following code, for example:

var image = avatars.generateAvatar({
            Hair: avatars.Hair.Eyepatch,
            Accessories: avatars.Accessories.Kurt,
            Eyebrow: avatars.Eyebrow.Angry
        }); 

Would produce the following image:
image

Credits

Avataaars designed by Pablo Stanley.
Web editor by Fang-Pen Lin.
React npm package by Fang-Pen Lin.
This NPM package is developed by Clyde D'Souza.

Keywords

FAQs

Last updated on 06 Dec 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc