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.
Returns Media Query text for a CSS source.
Install with npm
npm install --save mediaquery-text
var mediaQueryText = require('mediaquery-text');
var mediaQueries = mediaQueryText(css);
console.log(mediaQueries); // @media only screen and (min-width: 35em) {}
The code for this module was originally taken from the Juice library.
MIT