0.0.2-1 • Published 9 years ago

node-match-media v0.0.2-1

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

node-match-media

NPM version NPM Downloads Dependencies Dev Dependencies

Node function to extract styles matching certain media conditions, and separate the styles out

Usage

Future uses

  • gulp-match-media - I plan on making a wrapper for the popular build-tool Gulp
  • command line interface - extending this package so it can be run directly from the command line, or as a task to run from npm

Caveats / Todos

At the moment, functionality is limited to min-width, max-width, min-device-width, max-device-width, min-height, max-height, min-device-height, max-device-height, orientation media queries, chaining is supported with , and and to build complex statements. I have also recently added support for a binary check between print and all other media types. In the future I am looking to include: