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.
An even more lightweight version of film.js, a film like animation, that works for image.
A small, high-performance, and minimal-dependence library for creating image infinite-scrolling animations.
Compared to film.js, gallery.js:
Check out the demo here: https://f15gdsy.github.io/gallery.js/
If you are using npm:
npm install gallery-js --save
If you are using yarn:
yarn add gallery-js
First, you need to setup the following DOM structure:
<div class="gallery"></div>
Then create a new gallery object
const images = [
'images/pic_1.jpg',
'images/pic_2.jpg',
'images/pic_3.jpg',
'images/pic_4.jpg'
]
const opts = {
direction: 'vertical'
// ... other options
}
const gallery = new Gallery('.gallery', images, opts)
// or
const gallery = new Gallery(el, images, opts)
That's it!
Starts the animation.
Stops the animation.
Re-initialize the gallery. Will do heavy image regeneration and style recalculation. Usually not needed.
FAQs
An even more lightweight version of film.js, a film like animation, that works for image.
We found that gallery-js 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.