
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
vue-media-loader-directive
Advanced tools
Loads or background image with multiple sources, depending on
the viewport width. Use the
:media attribute to pass in an obj with keys
low, medium, and high image sources.
Once the image is loaded, if will be set on the element and a class of
media-loaded will be added.
You would use this package instead of, say,
PictureFill because there is a
single API for dealing with both img tags and css background images.
Usage:
Register the directive globally
Vue.directive 'media-loader', require 'vue-media-loader-directive'
Single image source string. Just add this to any element you want to load
v-media-loader='/img/temp-project-marquee-low.png'
Bundle of media sizes. Should be a JS object with keys low, medium, high
img(v-if='marquee' v-media-loader :media='[YOUR_OBJECT_REFERENCE]')
FAQs
Smart loads , , & background images
We found that vue-media-loader-directive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.