Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/folkjrk/go-ui-avatars

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/folkjrk/go-ui-avatars

  • v0.0.0-20241112073356-6238b3332557
  • Source
  • Go
  • Socket score

Version published
Created
Source

go-ui-avatars

Getting Started

The project is a Go library designed to create UI avatars from user names by producing SVG images that can be integrated into applications. It is inspired by ui-avatars.com, which generates simple avatars based on user initials.

Language support

  • Thai
  • English

Features

  • Random background color

Example

Here's a result by using this library.

getInitials(fullname)

Explanation

  • getInitials Function:
    • Takes a string (e.g., "Test@gmail.com").
    • Extracts the first letter of each word in the string.

input:

Test@gmail.com

Output:

TE

FAQs

Package last updated on 12 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc