$ npm install valid-media-queries
Check for the validity of a CSS media query. Based on the valid-css-props module by chenglou.
npm install valid-media-queries
var isValidMediaQuery = require('valid-media-queries');
isValidMediaQuery('@media tv and (monochrome), only screen'); // => true
isValidMediaQuery('@media not thing and (max-height : 50px)'); // => false
MIT.
© 2010 - cnpmjs.org x YWFE | Home | YWFE