Skip to content

Daylon/mediaquery-text

 
 

Repository files navigation

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

About

Returns Media Query text for a CSS source.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 76.3%
  • CSS 23.7%