1.1.2 • Published 4 years ago

seedable-random-avatar-generator v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Seedable Random Avatar Generator

Usage

Simple

import { getRandomAvatar } from 'seedable-random-avatar-generator';

// Returns get a url for a random avatar
getRandomAvatar();

With a seed

For instance, if you want to generate a random avatar for a user id/email which stays the same each time.

import { getRandomAvatar } from 'seedable-random-avatar-generator';

getRandomAvatar('avatar'); 

In the example above, specifying the seed avatar results in this image: -

avatar

https://avataaars.io/?accessoriesType=Kurt&avatarStyle=Circle&clotheColor=Blue01&clotheType=Hoodie&eyeType=EyeRoll&eyebrowType=RaisedExcitedNatural&facialHairColor=Blonde&facialHairType=BeardMagestic&hairColor=Black&hatColor=White&mouthType=Sad&skinColor=Yellow&topType=ShortHairShortWaved

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago