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.
ngx-image-blur
Advanced tools
Simple image blur loader component for Angular >= 2, inspired by image blur loading on Medium.
Simple image blur loader component for Angular >= 2, inspired by image blur loading on Medium.
npm install --save ngx-image-blur
...
import { NgxImageBlurModule } from 'ngx-image-blur';
@NgModule({
...
imports: [
...
NgxImageBlurModule
],
...
})
type LazyMode = 'eager' | 'half-lazy' | 'lazy'
eager
- image starts loading as soon as the page loads and does its blur transitions as soon as it canhalf-lazy
- image starts loading as soon as the page loads, but delays the blur transition until it comes into viewlazy
- image starts loading only once it comes into view@Input()
options:height
[string] - desired height of image e.g. '50vh' (required)width
[string] - desired width of image e.g. '500px' (required)previewSrc
[string] - link that can go in a url() (e.g. web link or assets path) to smaller thumbnail version of image (required)width
[string] - link that can go in a url() (e.g. web link or assets path) to full image (required)blurPixels
[integer] - how much blur to apply to the preview image (defaults to 8)transitionDuration
[integer] - time in ms to take for the transition between preview and fill images (defaults to 500, i.e. half a second)objectFit
[string] - CSS object-fit for the image (defaults to 'cover')lazyMode
[LazyMode] - which LazyMode to use for image loading - see above (defaults to 'eager')0.0.1 (20/07/2019)
FAQs
Simple image blur loader component for Angular >= 2, inspired by image blur loading on Medium.
We found that ngx-image-blur 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.
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.