Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

mediaquery-text

1.0.7 • Public • Published

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

install

npm i mediaquery-text

Downloadsweekly downloads

26,131

version

1.0.7

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability