Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@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 71 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.