
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
re-avataaars
Advanced tools
Original React library was developed by Fang-Pen Lin, based on a Sketch library designed by Pablo Stanley.
This is a rewrite of Fang-Pen Lin's work but as a API, this allow it to be used for things like:
Being a rewrite we removed, added and renamed stuff so this is not compatible with things like https://getavataaars.com
npm install re-avataaars --save
import avatar, { clotheColors } from 're-avataaars'
// this outputs a svg xml string
const svg = avatar({
topType: 'long-hair-curly',
clothType: 'shirt-v-neck',
clotheColor: clotheColors.pastelOrange
});
// you can add it directly to DOM (browser)
document.getElementById('foo').innerHTML = svg;
// save it to a file (nodejs)
require('fs').writeFileSync('avatar.svg', svg);
You can use the piece function to show individual pieces of an avatar.
import { piece, clotheColors } from 're-avataaars'
const svg = piece('clothe', {
clothType: 'graphics',
clotheColor: '#000000',
clotheGraphic: 'pizza'
}, { size: '268' });
Check the examples folder if you want to see more ways to use this module.
FAQs
Avataaars as a API
We found that re-avataaars 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.