# cms7-query-media

> - ### __queryMedia function(query, callOnChange, callback) -> void__: - ### @param {string} query: e.g: '(max-width: 769px)' - ### @param {boolean} callOnChange: whether or not to invoke _callback_ parameter on window resize - ### @event ca

Latest version **1.0.2** (published 2019-02-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install cms7-query-media
pnpm add cms7-query-media
yarn add cms7-query-media
bun add cms7-query-media
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-02-22 |
| First published | 2019-02-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | saeidfarahi |

## Links

- npm: https://www.npmjs.com/package/cms7-query-media
- npm.io page: https://npm.io/package/cms7-query-media

## Recent versions

- 1.0.2 (latest) — 2019-02-22
- 1.0.1 — 2019-02-22

## README

# media query helpers

## Exports:

- ### __queryMedia function(query, callOnChange, callback) -> void__:
    - ### @param {string} query: e.g: '(max-width: 769px)'
    - ### @param {boolean} callOnChange: whether or not to invoke _callback_ parameter on window resize
    - ### @event callback : function (isMatch: boolean) -> void

- ### __queryMediaSync function(query = '(max-width: 769px)') -> Boolean__: checks css query and returns the result immediateley

---
_Source: https://npm.io/package/cms7-query-media · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
