
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
ngx-media-query-watcher
Advanced tools
An angular directive to easy listen and handle media query changes.
An angular directive to easy listen and handle on media query changes.
If you like my work, feel free to support it. Donations to the project are always welcomed :)
PayPal: PayPal.Me/bengtler
npm install ngx-media-query-watcher@angular/core, @angular/platform-browser and rxjs - they are peer dependenciesMediaQueryWatcherModule from ngx-media-query-watcher:import { MediaQueryWatcherModule } from 'ngx-media-query-watcher'
MediaQueryWatcherModule to the imports of your NgModule:@NgModule({
imports: [
...,
MediaQueryWatcherModule
],
...
})
class YourModule { ... }
<div media-query-watcher query="(min-width: 992px)" (mediaMatchChanged)="handleChange($event)"></div> in your templates to listen on a media query and handle a media query change.paths:paths: {
...
'ngx-media-query-watcher': 'node_modules/ngx-media-query-watcher/bundles/ngx-media-query-watcher.umd.js'
}
packages:packages: {
'ngx-media-query-watcher': {
format: 'cjs'
}
}
media-query-watcher - add it as attribute to a html-tagquery - pass a css media query heremediaMatchChanged - get notified when a media query is matching or not<div
media-query-watcher
query="(min-width: 992px)"
(mediaMatchChanged)="handleChange($event)"
>
<p>hello</p>
</div>
class MyComponent {
handleChange(match: boolean) {
// handle match
}
}
FAQs
An angular directive to easy listen and handle media query changes.
We found that ngx-media-query-watcher 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.