Closed thisiscoding1234 closed 1 year ago
js npm install @dicebear/core @dicebear/collection --save import { createAvatar } from '@dicebear/core'; import { identicon } from '@dicebear/collection';
const avatar = createAvatar(identicon, { "seed": "Peanut", "backgroundType": [ "gradientLinear" ], "backgroundColor": [ "ffdfbf", "ffd5dc", "d1d4f9", "c0aede", "b6e3f4" ] });
const svg = avatar.toString();
cli npm install --global dicebear dicebear identicon . \ --seed 'Peanut' \ --backgroundType 'gradientLinear' \ --backgroundColor 'ffdfbf' 'ffd5dc' 'd1d4f9' 'c0aede' 'b6e3f4'
the options are now in the repository
https://github.com/dicebear/dicebear