# enquire-js

> avoid server-side rendering errors.

Latest version **0.2.1** (published 2018-04-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install enquire-js
pnpm add enquire-js
yarn add enquire-js
bun add enquire-js
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2018-04-02 |
| First published | 2017-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 37 |
| Author | 155259966@qq.com |
| Maintainers | jljsj33 |

## Links

- npm: https://www.npmjs.com/package/enquire-js
- Repository: https://github.com/jljsj/enquire-js
- Homepage: https://github.com/jljsj/enquire-js#readme
- Issues: https://github.com/jljsj/enquire-js/issues
- npm.io page: https://npm.io/package/enquire-js

## Dependencies (1)

- [enquire.js](https://npm.io/package/enquire.js.md) ^2.1.6

## Recent versions

- 0.2.1 (latest) — 2018-04-02
- 0.2.0 — 2018-04-02
- 0.1.3 — 2018-03-15
- 0.1.2 — 2018-01-19
- 0.1.1 — 2017-11-24
- 0.1.0 — 2017-11-24

## README

### enquire-js

避免服务端渲染报错。

### enquireScreen(cb, str);

| name       |type            |default  |description     |
|------------|----------------|---------|----------------|
| cb  | func     | null    | 回调接口, cb(bool),  bool 为 true 为 mobile  |
| str | string | `only screen and (max-width: 767.99px)` | css 的场景判断 |

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