
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
adi-userinitials
Advanced tools
This package might be useful to create a user icon with their initials. Light weight and simple to use.
Using NPM
npm install adi-userinitials --save
Using CDN
<script src="https://unpkg.com/adi-userinitials@2.0.1"></script>
Added avatar image feature. See the options below
Using npm
import {userinitial} from 'adi-userinitials'
const res = userinitial({
name: "Aditya Kadam",
height: "60px",
width: "60px",
root: "#root",
returnHTML: false
})
Using CDN
<!-- Paste CDN script tag in your head section of HTML-->
<script>
const res = userinitial({
name: "Aditya Kadam",
height: "60px",
width: "60px",
root: "#root",
returnHTML: false
})
</script>
| Options | Default Value | Description |
|---|---|---|
| name (required) | '' | Name/username of the user |
| root (required) | '' | Parent HTML Element of the icon |
| backGround | '#888888' | Background colour of the icon |
| avatarImage | '' | Image url |
| fontColor | '#ffffff' | Font colour of the icon |
| fontSize | '16px' | Font size of the initials |
| fontWeight | '600' | Font thickness |
| height | '50px' | Height of the icon |
| width | '50px' | Width of the icon |
| rounded | true | Gives circular icon |
| returnHTML | false | Returns icon in the form of HTML element |
FAQs
Create user icons with their initials
We found that adi-userinitials demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.