{"maintainers":[{"name":"moox","email":"m@moox.io"}],"keywords":["css","postcss","postcss-plugin","media queries","custom-media"],"dist-tags":{"latest":"5.0.1"},"author":{"name":"Maxime Thirouin"},"description":"PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS","readme":"# postcss-custom-media [![Build Status](https://travis-ci.org/postcss/postcss-custom-media.png)](https://travis-ci.org/postcss/postcss-custom-media)\n\n> [PostCSS](https://github.com/postcss/postcss) plugin to transform [W3C CSS Custom Media Queries](http://dev.w3.org/csswg/mediaqueries/#custom-mq) syntax to more compatible CSS.\n\n## Installation\n\n```console\n$ npm install postcss-custom-media\n```\n\n## Usage\n\n```js\n// dependencies\nvar postcss = require(\"postcss\")\nvar customMedia = require(\"postcss-custom-media\")\n\n// css to be processed\nvar css = fs.readFileSync(\"input.css\", \"utf8\")\n\n// process css using postcss-custom-media\nvar out = postcss()\n  .use(customMedia())\n  .process(css)\n  .css\n```\n\nUsing this `input.css`:\n\n```css\n@custom-media --small-viewport (max-width: 30em);\n\n@media (--small-viewport) {\n  /* styles for small viewport */\n}\n```\n\nyou will get:\n\n```css\n@media (max-width: 30em) {\n  /* styles for small viewport */\n}\n```\n\nCheckout [tests](test) for more examples.\n\n### Options\n\n#### `extensions`\n\n(default: `{}`)\n\nAllows you to pass an object to define the `<media-query-list>` for each\n`<extension-name>`. These definitions will override any that exist in the CSS.\n\n#### `preserve`\n\n(default: `false`)\n\nAllows you to preserve custom media query definitions in output.\n\n#### `appendExtensions`\n\n(default: `false`)\n\n**This option only works if `preserve` is truthy**.\nAllows you to append your extensions at end of your CSS.\n\n---\n\n## [Changelog](CHANGELOG.md)\n\n## [License](LICENSE)\n","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-custom-media.git"},"users":{"asaupup":true},"bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"license":"MIT","versions":{"1.0.0":{"name":"postcss-custom-media","version":"1.0.0","description":"PostCSS plugin to import CSS files","keywords":["css","postcss","postcss-plugins","media queries","custom-media"],"author":{"name":"MoOx"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-custom-media.git"},"files":["CHANGELOG.md","LICENSE","README.md","index.js"],"dependencies":{},"devDependencies":{"jscs":"^1.5.9","jshint":"^2.5.2","jshint-stylish":"^0.4.0","postcss":"^2.1.2","tap-colorize":"^1.2.0","tape":"^2.13.4"},"scripts":{"jscs":"jscs *.js **/*.js","jshint":"jshint . --exclude node_modules --reporter node_modules/jshint-stylish/stylish.js","test":"npm run jscs && npm run jshint && tape test | tap-colorize"},"gitHead":"131ec96b31b49df368db74ef995a4db25243c23a","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media","_id":"postcss-custom-media@1.0.0","_shasum":"0fb6dd7c84c51b8628540834b3ff7f00f91fe90b","_from":".","_npmVersion":"2.0.0-alpha-5","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"0fb6dd7c84c51b8628540834b3ff7f00f91fe90b","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-1.0.0.tgz"},"directories":{}},"1.0.1":{"name":"postcss-custom-media","version":"1.0.1","description":"PostCSS plugin to import CSS files","keywords":["css","postcss","postcss-plugins","media queries","custom-media"],"author":{"name":"MoOx"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-custom-media.git"},"files":["CHANGELOG.md","LICENSE","README.md","index.js"],"dependencies":{},"devDependencies":{"jscs":"^1.5.9","jshint":"^2.5.2","jshint-stylish":"^0.4.0","postcss":"^2.1.2","tap-colorize":"^1.2.0","tape":"^2.13.4"},"scripts":{"jscs":"jscs *.js **/*.js","jshint":"jshint . --exclude node_modules --reporter node_modules/jshint-stylish/stylish.js","test":"npm run jscs && npm run jshint && tape test | tap-colorize"},"gitHead":"bbecd0ca415a2de799e0ce894835b95c5203530c","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media","_id":"postcss-custom-media@1.0.1","_shasum":"1490e7eca837697bf2b402298a74ecc66f0216c7","_from":".","_npmVersion":"2.0.0-alpha-5","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"1490e7eca837697bf2b402298a74ecc66f0216c7","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-1.0.1.tgz"},"directories":{}},"1.1.0":{"name":"postcss-custom-media","version":"1.1.0","description":"PostCSS plugin to import CSS files","keywords":["css","postcss","postcss-plugins","media queries","custom-media"],"author":{"name":"MoOx"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-custom-media.git"},"files":["CHANGELOG.md","LICENSE","README.md","index.js"],"dependencies":{},"devDependencies":{"jscs":"^1.5.9","jshint":"^2.5.2","jshint-stylish":"^0.4.0","postcss":"^2.1.2","tap-colorize":"^1.2.0","tape":"^2.13.4"},"scripts":{"jscs":"jscs *.js **/*.js","jshint":"jshint . --exclude node_modules --reporter node_modules/jshint-stylish/stylish.js","test":"npm run jscs && npm run jshint && tape test | tap-colorize"},"gitHead":"42dfbc30fe7929ffcd930c397bed0599da0fe0d9","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media","_id":"postcss-custom-media@1.1.0","_shasum":"9709bad899552273eeb514450c7103480997b53c","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"9709bad899552273eeb514450c7103480997b53c","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-1.1.0.tgz"},"directories":{}},"1.2.0":{"name":"postcss-custom-media","version":"1.2.0","description":"PostCSS plugin to import CSS files","keywords":["css","postcss","postcss-plugins","media queries","custom-media"],"author":{"name":"MoOx"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-custom-media.git"},"files":["CHANGELOG.md","LICENSE","README.md","index.js"],"dependencies":{},"devDependencies":{"jscs":"^1.5.9","jshint":"^2.5.2","jshint-stylish":"^0.4.0","postcss":"^2.1.2","tap-colorize":"^1.2.0","tape":"^2.13.4"},"scripts":{"jscs":"jscs *.js **/*.js","jshint":"jshint . --exclude node_modules --reporter node_modules/jshint-stylish/stylish.js","test":"npm run jscs && npm run jshint && tape test | tap-colorize"},"gitHead":"eb662898563e89f8897483e26fa9e8f50985b154","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media","_id":"postcss-custom-media@1.2.0","_shasum":"59a7c5f73699e60465dc380a76886fd3892cd1e3","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"59a7c5f73699e60465dc380a76886fd3892cd1e3","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-1.2.0.tgz"},"directories":{}},"1.2.1":{"name":"postcss-custom-media","version":"1.2.1","description":" PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS","keywords":["css","postcss","postcss-plugins","media queries","custom-media"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-custom-media.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","postcss":"^2.2.5","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test"},"gitHead":"eb883df80504c641673cf69aa4d3e41e20d2e043","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media","_id":"postcss-custom-media@1.2.1","_shasum":"e30796bc5c6c2c5d8b190ce1028af1d57154cd10","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.33","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"e30796bc5c6c2c5d8b190ce1028af1d57154cd10","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-1.2.1.tgz"},"directories":{}},"1.3.0":{"name":"postcss-custom-media","version":"1.3.0","description":" PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS","keywords":["css","postcss","postcss-plugins","media queries","custom-media"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-custom-media.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{"postcss-message-helpers":"^1.1.0"},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","postcss":"^3.0.0","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test"},"gitHead":"028466a914a9a10c6a901c5db1bba37e1d047c98","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media","_id":"postcss-custom-media@1.3.0","_shasum":"34e2761b660a1698dfe42336db4481968d385e35","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.33","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"34e2761b660a1698dfe42336db4481968d385e35","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-1.3.0.tgz"},"directories":{}},"3.0.0":{"name":"postcss-custom-media","version":"3.0.0","description":" PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS","keywords":["css","postcss","postcss-plugins","media queries","custom-media"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-custom-media.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{"postcss-message-helpers":"^2.0.0"},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","postcss":"^4.0.2","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test"},"gitHead":"177c593c18b5594a65e6d731b6e906e80b4e88fd","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media","_id":"postcss-custom-media@3.0.0","_shasum":"5e35ae8badb31062ff6ba4940f7756df9cdea12c","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"5e35ae8badb31062ff6ba4940f7756df9cdea12c","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-3.0.0.tgz"},"directories":{}},"4.0.0":{"name":"postcss-custom-media","version":"4.0.0","description":" PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS","keywords":["css","postcss","postcss-plugins","media queries","custom-media"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-custom-media.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{"postcss":"^4.1.4"},"devDependencies":{"eslint":"^0.23.0","tape":"^4.0.0"},"scripts":{"test":"eslint . && tape test"},"gitHead":"2c8f2538088be18c64d66f70f6803cb6ffb28896","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media#readme","_id":"postcss-custom-media@4.0.0","_shasum":"b90a18007ff8439f5c8c1cf9fac18b241a7a0b80","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"b90a18007ff8439f5c8c1cf9fac18b241a7a0b80","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-4.0.0.tgz"},"directories":{}},"4.1.0":{"name":"postcss-custom-media","version":"4.1.0","description":" PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS","keywords":["css","postcss","postcss-plugins","media queries","custom-media"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-custom-media.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{"postcss":"^4.1.4"},"devDependencies":{"eslint":"^0.23.0","tape":"^4.0.0"},"scripts":{"test":"eslint . && tape test"},"gitHead":"7c1c36a18b70b2691f4ca86fadac5ccccbedc09d","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media#readme","_id":"postcss-custom-media@4.1.0","_shasum":"b99be5ede95b72ed1e89dc18a138ec5c63df4bee","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"b99be5ede95b72ed1e89dc18a138ec5c63df4bee","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-4.1.0.tgz"},"directories":{}},"5.0.0":{"name":"postcss-custom-media","version":"5.0.0","description":"PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS","keywords":["css","postcss","postcss-plugin","media queries","custom-media"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-custom-media.git"},"files":["index.js"],"dependencies":{"postcss":"^5.0.0"},"devDependencies":{"eslint":"^1.0.0","tape":"^4.0.0"},"scripts":{"test":"eslint . && tape test"},"gitHead":"4fc56724a73d54d803301a6a3004c97995a4aa92","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media#readme","_id":"postcss-custom-media@5.0.0","_shasum":"1e07fa54df17e4c6df5d0d0d5bcda6216332fa12","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"1e07fa54df17e4c6df5d0d0d5bcda6216332fa12","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-5.0.0.tgz"},"directories":{}},"5.0.1":{"name":"postcss-custom-media","version":"5.0.1","description":"PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS","keywords":["css","postcss","postcss-plugin","media queries","custom-media"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-custom-media.git"},"files":["index.js"],"dependencies":{"postcss":"^5.0.0"},"devDependencies":{"eslint":"^1.10.3","eslint-config-i-am-meticulous":"^2.0.0","npmpub":"^3.0.1","tape":"^4.0.0"},"scripts":{"lint":"eslint --fix .","tests":"tape test","test":"npm run lint && npm run tests","release":"npmpub"},"eslintConfig":{"extends":"eslint-config-i-am-meticulous/es5"},"gitHead":"c1bfe9fd04c66da6f86072f063c3539b061344b4","bugs":{"url":"https://github.com/postcss/postcss-custom-media/issues"},"homepage":"https://github.com/postcss/postcss-custom-media#readme","_id":"postcss-custom-media@5.0.1","_shasum":"138d25a184bf2eb54de12d55a6c01c30a9d8bd81","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"moox","email":"m@moox.io"}],"dist":{"shasum":"138d25a184bf2eb54de12d55a6c01c30a9d8bd81","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/postcss-custom-media/-/postcss-custom-media-5.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/postcss-custom-media-5.0.1.tgz_1454482531134_0.5744193433783948"},"directories":{}}},"name":"postcss-custom-media","time":{"modified":"2016-10-28T06:11:48.094Z","created":"2014-08-12T12:53:35.932Z","2.0.0":"2014-08-12T12:53:35.932Z","1.0.0":"2014-08-12T13:33:42.691Z","1.0.1":"2014-09-16T04:15:53.296Z","1.1.0":"2014-09-30T04:37:54.867Z","1.2.0":"2014-10-01T05:09:04.073Z","1.2.1":"2014-11-09T06:29:51.674Z","1.3.0":"2014-11-25T08:03:33.158Z","3.0.0":"2015-01-29T06:24:51.637Z","4.0.0":"2015-06-17T06:45:34.497Z","4.1.0":"2015-06-30T05:28:28.427Z","5.0.0":"2015-08-25T04:56:49.290Z","5.0.1":"2016-02-03T06:55:34.226Z"},"readmeFilename":"README.md","homepage":"https://github.com/postcss/postcss-custom-media#readme"}