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

generate-avatar

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generate-avatar

  • 1.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
518
increased by3.81%
Maintainers
1
Weekly downloads
 
Created
Source

👆 The logo is: generateFromString('generateavatar')

License Version bundle size (minified) type definitions

Check out the example: https://generate-avatar.now.sh/

Generate Avatar

Your lightweight avatar generator, which 100% fingerprinted on any input you want.

You can pass your email, uuid, username etc. as an input and it will generate everytime the same unique svg based avatar for you. Which means you don't need to store any image in your database anymore. It generates that image on the fly whereever you want based on the id, email and so on.

The best thing it's only 5kB big, so it can be basically used everywhere you want.

Install

  npm i generate-avatar

How it works

You pass in the string you want and it will return the svg in a string format:

  import { generateFromString } from 'generate-avatar'

  generateFromString("example@test.com")

This will generate the following svg image.

You can try it out here. Try to pass in example@test.com and you will see the exact same image.

Keywords

FAQs

Package last updated on 25 Apr 2020

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