
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@nativescript-use/nativescript-media-query
Advanced tools
npm install @nativescript-use/nativescript-media-query
import { matchMedia, MediaQueryList } from "@nativescript-use/nativescript-media-query"
const mql: MediaQueryList = matchMedia("(min-width: 400)");
if (mql.matches) {
/* The screen is at least 400 dpi wide */
} else {
/* The screen is less than 400 dpi wide */
}
// Add listener
mql.onchange = (event: MediaQueryListEvent) => {
// some logic
});
const myListener = () => console.log("Change!");
mql.addListener(myListener);
// Remove listener
mql.removeListener(myListener);
Type declaration
export interface MediaQueryList {
readonly matches: boolean;
readonly media: string;
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
addListener(listener: MediaQueryListListener): void;
removeListener(listener: MediaQueryListListener): void;
}
export type MediaQueryListListener = (mql: MediaQueryList) => void;
export interface MediaQueryListEvent {
readonly matches: boolean;
readonly media: string;
}
export declare function matchMedia(mediaQueryString: string): MediaQueryList;
Apache License Version 2.0
FAQs
Add a plugin description
The npm package @nativescript-use/nativescript-media-query receives a total of 8 weekly downloads. As such, @nativescript-use/nativescript-media-query popularity was classified as not popular.
We found that @nativescript-use/nativescript-media-query demonstrated a healthy version release cadence and project activity because the last version was released less than 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.