@davidst2017/avatar-creator
v1.0.0
Published
Creates svg or png avatar icons using node
Downloads
3
Readme
Avatar creator
Creates UI avatars like: or
It's just like (UI avatars)[https://ui-avatars.com/], which is a great service. So use it!
However, if your project does not allow you to rely on an external service and want to create avatars with node, this lib is a great alternative.
Install
npm i avatar-creator --save
Usage
const svg = await createAvatar({
type: AvatarCreatorType.INITIALS,
outputFormat: 'png',
backgroundColor: '#12ff55',
forgroundColor: '#993322',
text: "DS"
})
Extend avatar creators
Run dev server with npm dev
. Dev server starts on port 3334. (http://localhost:3334)[http://localhost:3334]
Add a new avatar creator to the creators folder and start implementing it. Whenever you make a change the page will refresh automatically.