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.
@brighthr/component-avatar
Advanced tools
To install, type the following into the command line at the root of your project:
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-avatar
To implement the Avatar component into your project you’ll need to add the import:
import Avatar from '@brighthr/component-avatar';
After adding import into your project you can use it simply like:
<Avatar />
Name | Type | Default | Description |
---|---|---|---|
imageHref | string | Sets the src attribute for the <img /> . | |
name | string | Sets the initials to be shown if no imageHref is provided. Also sets image alt and tooltip on hover. | |
presence | 'in' 'out' 'absent' | Sets a different colored circle at the bottom of the avatar. | |
size | 'xxs' 'xs' 'sm' 'base' 'lg' 'xl' 'xxl' | Sets the size of the avatar. |
FAQs
To install, type the following into the command line at the root of your project:
The npm package @brighthr/component-avatar receives a total of 223 weekly downloads. As such, @brighthr/component-avatar popularity was classified as not popular.
We found that @brighthr/component-avatar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.