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.
@hirasso/thumbhash-custom-element
Advanced tools
A custom element that renders a thumbhash placeholder for your lazy-loaded images 🎨
A custom element that automatically renders a thumbhash placeholder for your lazy-loaded images 🎨
thumbhash-custom-element.netlify.app
Install from npm and import it into your bundle:
npm i thumbhash-custom-element
import defineThumbhashElement from "thumbhash-custom-element";
defineThumbhashElement();
Or include the minified production file from a CDN:
<script src="https://unpkg.com/thumbhash-custom-element@0"></script>
<script>
defineThumbhashElement();
</script>
If the script is installed an initialized, you can render thumbhash placeholders automatically by using the custom element:
<figure>
<thumb-hash value="YTkGJwaRhWUIt4lbgnhZl3ath2BUBGYA" aria-hidden="true"></thumb-hash>
<img src="{{ url }}" loading="lazy" width="{{ width }}" height="{{ height }}" alt="{{ alt }}">
</figure>
figure,
figure img {
position: relative;
}
thumb-hash {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
FAQs
A custom element that renders a thumbhash placeholder for your lazy-loaded images 🎨
The npm package @hirasso/thumbhash-custom-element receives a total of 9 weekly downloads. As such, @hirasso/thumbhash-custom-element popularity was classified as not popular.
We found that @hirasso/thumbhash-custom-element 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.