Skip to content

Releases: monooso/avatar

Version 1.3.1

28 Dec 17:57
5a0a033
Compare
Choose a tag to compare

Fix radius bug, whereby the radius would scale according to the size.

Version 1.3.0

17 Dec 16:51
dd18ba0
Compare
Choose a tag to compare

Add PNG support via the generatePng function. Accepts the same options as generateSvg.

Version 1.2.0

11 Dec 22:24
2e67bbf
Compare
Choose a tag to compare

Add support for radius option, allowing the user to control the corner radius of the generated SVG. If radius >= size / 2 the SVG will be circular.

Version 1.1.0

09 Dec 19:08
b65bdda
Compare
Choose a tag to compare

Add support for size option, allowing the user to control the size of the generated SVG.

Version 1.0.0

08 Dec 21:22
320c497
Compare
Choose a tag to compare

Avatar is a Deno module which generates a random SVG avatar for a given string identifier. It is guaranteed to always generate the same avatar for the same identifier.

Usage

import { generateSvg } from "https://deno.land/x/[email protected]/mod.ts";

const avatar = await generateSvg("some-identifier-string");

Credits

The avatars are generated using elements from the splendid Miniavs avatar builder, by Webpixels.