# mediaquery-text

> Returns Media Query text for a CSS source.

Latest version **1.2.0** (published 2022-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install mediaquery-text
pnpm add mediaquery-text
yarn add mediaquery-text
bun add mediaquery-text
```

## 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.2.0 |
| Published | 2022-01-17 |
| First published | 2015-01-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 438 |
| Author | Jonathan Kemp |
| Maintainers | jonkemp |
| Keywords | mediaqueries, css, styles, inline |

## Links

- npm: https://www.npmjs.com/package/mediaquery-text
- Repository: https://github.com/jonkemp/inline-css.git#master
- Homepage: https://github.com/jonkemp/inline-css/tree/master/packages/mediaquery-text
- Issues: https://github.com/jonkemp/inline-css/issues
- npm.io page: https://npm.io/package/mediaquery-text

## Dependencies (1)

- [cssom](https://npm.io/package/cssom.md) ^0.5.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2022-01-17
- 1.1.5 — 2020-01-26
- 1.1.4 — 2020-01-25
- 1.1.3 — 2020-01-25
- 1.1.2 — 2020-01-19
- 1.1.1 — 2019-11-14
- 1.1.0 — 2019-11-11
- 1.0.9 — 2019-10-11
- 1.0.8 — 2019-10-10
- 1.0.7 — 2018-12-22
- 1.0.6 — 2018-10-25
- 1.0.5 — 2017-11-05
- 1.0.4 — 2017-11-05
- 1.0.3 — 2017-11-04
- 1.0.2 — 2016-03-31
- … 2 more at https://npm.io/package/mediaquery-text/versions

## README

# mediaquery-text [![Build Status](https://github.com/jonkemp/mediaquery-text.svg?branch=master)](https://github.com/jonkemp/mediaquery-text) [![Coverage Status](https://coveralls.io/repos/jonkemp/mediaquery-text/badge.svg?branch=master&service=github)](https://coveralls.io/github/jonkemp/mediaquery-text?branch=master)

[![NPM](https://nodei.co/npm/mediaquery-text.png?downloads=true)](https://nodei.co/npm/mediaquery-text/)

> Returns Media Query text for a CSS source.

## Install

Install with [npm](https://npmjs.org/package/mediaquery-text)

```
npm install --save mediaquery-text
```

## Usage

```js
var mediaQueryText = require('mediaquery-text');

var mediaQueries = mediaQueryText(css);

console.log(mediaQueries);  // @media only screen and (min-width: 35em) {}
```

## Credit

The code for this module was originally taken from the [Juice](https://github.com/Automattic/juice) library.

## License

MIT

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