Releases: monooso/avatar
Releases · monooso/avatar
Version 1.3.1
Version 1.3.0
Add PNG support via the generatePng
function. Accepts the same options as generateSvg
.
Version 1.2.0
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
Add support for size
option, allowing the user to control the size of the generated SVG.
Version 1.0.0
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.