Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@dicebear/avatars-bottts-sprites
Advanced tools
Designed by Pablo Stanley, the Sketch library can be found on bottts.com.
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/v2/bottts/:seed.svg
The value of :seed
can be anything you like - but don't use any sensitive or personal data here!
preview | url |
---|---|
https://avatars.dicebear.com/v2/bottts/example.svg | |
https://avatars.dicebear.com/v2/bottts/example.svg?options[colors][]=cyan | |
https://avatars.dicebear.com/v2/bottts/example.svg?options[colors][]=cyan&options[primaryColorLevel]=200 |
Install the Avatars and this sprite collection with the following command.
npm install --save @dicebear/avatars @dicebear/avatars-bottts-sprites
Now you are ready to create your first Avatar.
import Avatars from '@dicebear/avatars';
import sprites from '@dicebear/avatars-bottts-sprites';
let avatars = new Avatars(sprites());
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 | |
colors | array of strings | null | Possible values: amber , blue , blueGrey , brown , cyan , deepOrange , deepPurple , green , grey , indigo , lightBlue , lightGreen , lime , orange , pink , purple , red , teal , yellow | |
primaryColorLevel | number | 600 | Possible values: 50 , 100 , 200 , 300 , 400 , 500 , 600 , 700 , 800 , 900 | |
secondaryColorLevel | number | 400 | Possible values: 50 , 100 , 200 , 300 , 400 , 500 , 600 , 700 , 800 , 900 | |
colorful | boolean | false | Assigns sides and top a random secondary color | |
mouthChance | number | 100 | Probability in percent avatar will have a mouth | |
sidesChance | number | 100 | Probability in percent avatar will have side elements | |
textureChance | number | 50 | Probability in percent avatar will have texture | |
topChance | number | 100 | Probability in percent avatar will have a top element |
You can find the DiceBear Avatars documentation at avatars.dicebear.com
FAQs
Bottts avatar style for DiceBear Avatars
The npm package @dicebear/avatars-bottts-sprites receives a total of 1,061 weekly downloads. As such, @dicebear/avatars-bottts-sprites popularity was classified as popular.
We found that @dicebear/avatars-bottts-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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.