Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
svelte-image-gallery
Advanced tools
A Masonry-Like Image Container for Svelte
Traditional | svelte-image-gallery |
---|---|
Made responsive via media queries or minmax/autofit | Responsive out of the box |
npm install --save-dev svelte-image-gallery
<script>
import Gallery from 'svelte-image-gallery'
function handleClick(e) {
console.log(e.detail.src)
}
</script>
<Gallery on:click={handleClick}>
<img src="..." />
<img src="..." />
...
</Gallery>
example
folder in terminalnpm i
, then npm run dev
Parameter | Default | Description | Unit |
---|---|---|---|
gap | 10 | Grid Gap Between Items | px |
maxColumnWidth | 250 | Maximum Column Width | px |
hover | false | Enlarge Image on Hover | bool |
loading | eager | Image Loading Type | mdn |
To access the image url on click, use the on:click
directive in the Gallery component.
Created By Berkin AKKAYA
FAQs
A Masonry-Like Image Container for Svelte
The npm package svelte-image-gallery receives a total of 85 weekly downloads. As such, svelte-image-gallery popularity was classified as not popular.
We found that svelte-image-gallery 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.