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.
Super lightweight lightbox gallery with no dependencies.
View the example.html
page live here:
https://gallery-gxfgq8lu8.now.sh/example.html
Will look for images with the attribute data-gallery-src
and open a lightbox gallery on click.
Look in example.html
for example usage.
data-gallery-src
URL to large image to use in gallery
data-gallery-desc
(Optional) Description text/html to use below image in gallery
data-gallery-id
(Optional) Used to group multiple images in a gallery. If not specified will treat image to be part of global gallery.
npm install gallery
const gallery = require('gallery')
// Init galleries found inside document
gallery(document)
// Init galleries found inside specific node
gallery(document.querySelector('.some-node'))
<script src="gallery.min.js"></script>
Will automatically look for galleries on current page but also exposes a global method initGallery(parent)
.
You can override the styles in gallery
by plain css. The selectors used that can be overriden are:
.gallery-lightbox
.gallery-lightbox.-open
.gallery-lightbox > .close
.gallery-lightbox > .close
.gallery-lightbox > .close:after
.gallery-lightbox > .close:before
.gallery-lightbox > .description
.gallery-lightbox > .image
.gallery-lightbox > .image > img
.gallery-lightbox > .next
.gallery-lightbox > .next:after
.gallery-lightbox > .next:before
.gallery-lightbox > .prev
.gallery-lightbox > .prev:after
.gallery-lightbox > .prev:before
FAQs
Super lightweight lightbox gallery with no dependencies
The npm package gallery receives a total of 34 weekly downloads. As such, gallery popularity was classified as not popular.
We found that gallery 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.
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.