JSPM

valid-media-queries

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q37583F
  • License MIT

Check for the validity of a CSS media query.

Package Exports

  • valid-media-queries

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (valid-media-queries) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

API

var isValidMediaQuery = require('valid-media-queries');

isValidMediaQuery('@media tv and (monochrome), only screen'); // => true
isValidMediaQuery('@media not thing  and (max-height : 50px)'); // => false

License

MIT.