@nextorders/avatar
v1.0.3
Published
A toolkit for generating personalized SVG avatars
Maintainers
Readme
Avatar 👩🎨
The @nextorders/avatar package allows you to easily generate SVG avatars.
Based on the Open Peeps set by Pablo Stanley, which is licensed under CC0 1.0.
Installation
You can install the library via npm:
npm install @nextorders/avatarUsage
To generate an avatar, call the createAvatar() function and pass the options:
type AvatarOptions = {
seed: string
gender?: Gender
clothing?: 'amber' | 'green' | 'blue' | 'teal' | 'pink' | 'violet'
emotion?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
}License
This project is licensed under the MIT License.
