valid-media-queries

Check for the validity of a CSS media query.

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.