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.
You can install the library via npm:
npm install @nextorders/avatarTo 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
}This project is licensed under the MIT License.
