node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

mediaquery-text

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