Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@dicebear/avatars-human-sprites
Advanced tools
This Sprite Collection combines the Sprite Collections male and female and selects the gender randomly.
Our free HTTP-API is the easiest way to use this sprite collection. Just use the following URL as image source.
https://avatars.dicebear.com/api/human/:seed.svg
The value of :seed
can be anything you like - but don't use any sensitive or personal data here! The GET parameter
options
can be used to pass options.
Install the Avatars and this sprite collection with the following command.
npm install --save @dicebear/avatars @dicebear/avatars-human-sprites
Now you are ready to create your first Avatar.
import Avatars from '@dicebear/avatars';
import sprites from '@dicebear/avatars-human-sprites';
let options = {};
let avatars = new Avatars(sprites, options);
let svg = avatars.create('custom-seed');
name | alias | type | default | description |
---|---|---|---|---|
radius | r | number | 0 | Avatar border radius |
base64 | bool | false | Return avatar as base64 data uri instead of XML Not supported by the HTTP API | |
width | w | number | null | Fixed width |
height | h | number | null | Fixed height |
margin | m | number | 0 | Avatar margin in percent HTTP-API limitation Max value 25 |
background | b | string | null | Any valid color identifier HTTP-API limitation Only hex (3-digit, 6-digit and 8-digit) values are allowed. Use url encoded hash: %23 . |
userAgent | string | window.navigator.userAgent | User-Agent for legacy browser fallback Automatically detected by the HTTP API | |
mood | array of strings | ['happy', 'sad', 'surprised'] | Possible values: sad , happy , surprised |
You can find the DiceBear Avatars documentation at avatars.dicebear.com
FAQs
Pixel art human avatar style for DiceBear Avatars
The npm package @dicebear/avatars-human-sprites receives a total of 0 weekly downloads. As such, @dicebear/avatars-human-sprites popularity was classified as not popular.
We found that @dicebear/avatars-human-sprites 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.