Get unlimited public & private packages + team-based management with npm Teams.Learn more »

mediaquery-text

1.1.5 • 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

38,813

Version

1.1.5

License

MIT

Unpacked Size

4.44 kB

Total Files

4

Last publish

Collaborators

  • avatar