Transform min/max-width/height media queries to ems.
This is a low-level module. You’re probably looking for PostCSS or Babel plugin.
npm install em-media-query --save
import meMediaQuery from 'em-media-query';
console.log(emMediaQuery('screen and (min-width:600px)'));
// 'screen and (min-width:37.5em)'
Returns: string
Type: string
Media query to convert.
Type: Object
Type: number
Default: 5
Rounding precision for values.
MIT © Ivan Nikolić