dicebear-suited-icons-man v1.0.3
Usage
Install the DiceBear package and this avatar style with the following command:
npm install @dicebear/core dicebear-suited-icons-man --saveNow you can create your first avatar.
import { createAvatar } from '@dicebear/core';
import style from 'dicebear-suited-icons-man';
let svg = createAvatar(style, {
// ... options
});Options
All options from DiceBear and additionally the following:
body
type: array
allowed: variant01, variant02, variant07, variant09, variant08, variant06, variant05, variant03, variant04
default: ['variant01', 'variant02', 'variant06', 'variant05', 'variant03', 'variant04']
bodyColor
type: array
default: ['d3d0ce', '8a7a6f', '84a8b7', 'ffb500', 'ac3d3e', 'c68152', '80c79a', '9b93bb', 'e06e69']
face
type: array
allowed: variant01, variant02
default: ['variant01']
mustache
type: array
allowed: variant01
default: ['variant01']
mustacheProbability
type: integer
minimum: 0
maximum: 100
default: 20
top
type: array
allowed: variant01, variant02, variant03, variant04, variant08, variant09, variant07, variant06, variant05
default: ['variant01', 'variant02', 'variant03', 'variant04', 'variant06', 'variant05']
topColor
type: array
default: ['ce7d2f', 'd9d9d9', '803b37']
Build this package
npm run buildTest this package
npm run test