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.
@prof-dev/masonry
Advanced tools
A simple, easy-to-use solution for creating masonry-style grids with CSS Grid. This library checks for support of grid-template-rows: masonry
in the browser. If unsupported, it automatically adjusts item placement to simulate a masonry layout.
It supports any grid-template-columns
configuration and allows flexible use of @media
queries to adjust column layouts.
Note: This polyfill does not implement any packing algorithms. The original order of items will be preserved.
npm i @prof-dev/masonry
.masonry-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, auto));
align-items: start;
gap: 12px;
}
const grid = document.querySelector(".masonry-grid");
if (grid !== null) {
new Masonry(grid);
}
FAQs
Unknown package
The npm package @prof-dev/masonry receives a total of 107 weekly downloads. As such, @prof-dev/masonry popularity was classified as not popular.
We found that @prof-dev/masonry 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.