{"_id":"siphon-media-query","_rev":"3-7b0caf2f541da4c17bbf1cf52dc8a6a3","name":"siphon-media-query","description":"Extract media query-specific rules from CSS","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"siphon-media-query","version":"1.0.0","description":"Extract media query-specific rules from CSS","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/zurb/siphon-media-query.git"},"keywords":["css","media","query"],"author":{"name":"ZURB","email":"foundation@zurb.com","url":"http://foundation.zurb.com"},"license":"MIT","bugs":{"url":"https://github.com/zurb/siphon-media-query/issues"},"homepage":"https://github.com/zurb/siphon-media-query#readme","devDependencies":{"mocha":"^2.4.5"},"dependencies":{"css-parse":"^2.0.0","css-stringify":"^2.0.0"},"gitHead":"fe92bb2b48a390d856b4d575e96d18fab84e0376","_id":"siphon-media-query@1.0.0","_shasum":"1973d7260d5e92a322fc27372f1ca224059e53c8","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.3.0","_npmUser":{"name":"gakimball","email":"geoff@zurb.com"},"dist":{"shasum":"1973d7260d5e92a322fc27372f1ca224059e53c8","tarball":"https://registry.npmjs.org/siphon-media-query/-/siphon-media-query-1.0.0.tgz","integrity":"sha512-MD3xNHo7tAufetBKxFT5EWCQdQxR5v/Mz49d1/URGoOjrzQ90d6hx8uuSzKkZdO2mNEIt3zAyKlF9fg3Ek7Ydw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvMmos0CQj0YoGsuUu5QqfpuuvR3GDKnzawcbumDWEOwIgAcVRczdzx05ROK0m77Em+UYfRIs1i7uGLtG5VPO9YOw="}]},"maintainers":[{"name":"gakimball","email":"geoff@zurb.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/siphon-media-query-1.0.0.tgz_1457033699553_0.8581195136066526"}}},"readme":"# siphon-media-query\n\nExtract media query-specific CSS from a stylesheet. Used by the [Foundation for Emails](http://foundation.zurb.com/emails) web inliner to separate general CSS from media query-specific CSS. Inspired by [media-query-extractor](https://www.npmjs.com/package/media-query-extractor), the main difference being this library works as a pure API.\n\n## Installation\n\n```bash\nnpm install siphon-media-query --save\n```\n\n## Usage\n\nThe parse function takes in a CSS string and gives you back a CSS string.\n\nTo extract all media queries:\n\n```js\nvar parse = require('siphon-media-query');\n\nvar input = `\n  .foo { color: red; }\n\n  @media { .bar { color: dodgerblue; } }\n`;\n\nparse(input); // => @media { .bar { color: dodgerblue; } }\n```\n\nTo extract only CSS from a specific media query:\n\n```js\nvar input = `\n  @media (min-width: 400px) {\n    .foo { color: red; }\n  }\n\n  @media (min-width: 800px) {\n    .bar { color: dodgerblue; }\n  }\n`;\n\nparse(input, '(min-width: 800px)');\n// =>\n// @media (min-width: 800px) {\n//   .bar { color: dodgerblue; }\n// }\n```\n\n## Local Development\n\n```bash\ngit clone https://github.com/zurb/siphon-media-query\ncd siphon-media-query\nnpm install\nnpm test\n```\n","maintainers":[{"name":"gakimball","email":"geoff@zurb.com"}],"time":{"modified":"2022-06-26T20:18:03.804Z","created":"2016-03-03T19:35:00.706Z","1.0.0":"2016-03-03T19:35:00.706Z"},"homepage":"https://github.com/zurb/siphon-media-query#readme","keywords":["css","media","query"],"repository":{"type":"git","url":"git+https://github.com/zurb/siphon-media-query.git"},"author":{"name":"ZURB","email":"foundation@zurb.com","url":"http://foundation.zurb.com"},"bugs":{"url":"https://github.com/zurb/siphon-media-query/issues"},"license":"MIT","readmeFilename":"README.md"}