{"name":"postcss-image-set-polyfill","version":"0.4.0","description":"PostCSS plugin for fallback image-set","keywords":["postcss","css","postcss-plugin","image-set","background","image"],"author":{"name":"SuperOl3g","email":"oleglykasov@gmail.com"},"license":"MIT","engines":{"node":">=4.0.0"},"repository":{"type":"git","url":"git+https://github.com/SuperOl3g/postcss-image-set-polyfill.git"},"dependencies":{"postcss":"^6.0.1","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"benchmark":"2.1.4","chai":"2.2.0","eslint":"3.15.0","husky":"^0.13.4","mocha":"3.2.0"},"scripts":{"test":"mocha","lint":"eslint *.js **/*.js || true","benchmark":"node benchmark.js","precommit":"npm run lint","prepush":"npm test"},"gitHead":"8deb10d12693e75edeb008d2b94d6a8fbd25167d","bugs":{"url":"https://github.com/SuperOl3g/postcss-image-set-polyfill/issues"},"homepage":"https://github.com/SuperOl3g/postcss-image-set-polyfill#readme","_id":"postcss-image-set-polyfill@0.4.0","_npmVersion":"5.2.0","_nodeVersion":"8.1.3","_npmUser":{"name":"superol3g","email":"oleglykasov@gmail.com"},"dist":{"integrity":"sha512-Ld6iFw+bUZBDGrEmH59jjAJdnZ8j1pxFXAGXUY7/p6ZmQ41p7pDMOx1kupRLZCVZdZ4AZuFKGSHGm7slH5O6eg==","shasum":"70b4d03ac571cc19c7f34a0d6f36d6ccd5ab95bb","tarball":"http://registry-npm.ywwl.com/postcss-image-set-polyfill/download/postcss-image-set-polyfill-0.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBqTb75B1lJWynwTQB55b53Xmu9sTe3X8NHyR9iV6RwwIhAMp8kv5N4ZAPn1DyqMAiJEqrdtw34Cn5eBNMTdh21YGQ"}],"size":11851,"noattachment":false,"key":"/postcss-image-set-polyfill/-/postcss-image-set-polyfill-0.4.0.tgz"},"maintainers":[{"name":"superol3g","email":"oleglykasov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-image-set-polyfill-0.4.0.tgz_1499993000828_0.4581007973756641"},"directories":{},"readme":"\n# postcss-image-set-polyfill [![Build Status](https://travis-ci.org/SuperOl3g/postcss-image-set-polyfill.svg)](https://travis-ci.org/SuperOl3g/postcss-image-set-polyfill) [![npm version](https://badge.fury.io/js/postcss-image-set-polyfill.svg)](https://badge.fury.io/js/postcss-image-set-polyfill)\n\n[PostCSS] plugin for [polyfilling](http://caniuse.com/#feat=css-image-set) [`image-set`](https://drafts.csswg.org/css-images-4/#image-set-notation) CSS function.\n\n[PostCSS]: https://github.com/postcss/postcss\n\n```css\n/* Input example */\n.foo {\n    background-image: image-set(url(img/test.png) 1x,\n                                url(img/test-2x.png) 2x,\n                                url(my-img-print.png) 600dpi);\n}\n```\n\n```css\n/* Output example */\n.foo {\n    background-image: url(img/test.png);\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n    .foo {\n        background-image: url(img/test-2x.png);\n    }\n}\n\n\n@media (-webkit-min-device-pixel-ratio: 6.25), (min-resolution: 600dpi) {\n    .foo {\n        background-image: url(my-img-print.png);\n    }\n}\n```\n<a href=\"https://astexplorer.net/#/gist/86d1248cc4628f850454d3191c95efec/3bbf606fe0ef2662917a845aa16a715d06435650\" target=\"_blank\">→Try it online←</a>\n\n\n❗️ Resolution media query is supported only by IE9+.\n\n## Installation\n\n`npm i postcss-image-set-polyfill -D`\n\n> ️❕ NodeJS version must be 6+.\n\n## Usage\n\n```js\nvar postcssImageSet = require('postcss-image-set-polyfill');\n\npostcss([postcssImageSet]).process(YOUR_CSS, /* options */);\n```\n\nSee [PostCSS] docs for examples for your environment.\n\n\n### ⚠️️ Warning\n\nIf you use [autoprefixer](https://github.com/postcss/autoprefixer), place this plugin before it to prevent styles duplication.\n","publish_time":1499993001785,"_cnpm_publish_time":1499993001785,"dist-tags":{"latest":"1.0.0"}}