
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.
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.
The npm package ngx-media-query-watcher receives a total of 1 weekly downloads. As such, ngx-media-query-watcher popularity was classified as not popular.
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
/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.