Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

jonkemp/mediaquery-text

Repository files navigation

Moved

This module has moved and is now available at https://github.com/jonkemp/inline-css/tree/master/packages/mediaquery-text. This repository is no longer maintained.

mediaquery-text Build Status Coverage Status

NPM

Returns Media Query text for a CSS source.

Install

Install with npm

npm install --save mediaquery-text

Usage

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 library.

License

MIT