avatar-gen

1.1.4 • Public • Published

Npm Version Npm Downloads

Avatar Generator

A Typescript library that generates an Avatar from a name string.

import { generateAvatar } from 'avatar-gen'
 
generateAvatar('Sachin Patney'); // returns a image data url
 
generateAvatar('Sachin Patney', 96, '#DDD'); // optionally you can supply size (in pixels) & fill color

Readme

Keywords

none

Package Sidebar

Install

npm i avatar-gen

Weekly Downloads

9

Version

1.1.4

License

MIT

Last publish

Collaborators

  • sachinio