@davidst2017/avatar-creator
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Avatar creator

Creates UI avatars like: Avatar icon or Avatar icon

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @davidst2017/avatar-creator

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

9.52 kB

Total Files

11

Last publish

Collaborators

  • davidst2017