{"name":"postcss-image-set-polyfill","version":"0.4.1","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","postcss-value-parser":"3.3.0"},"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":"fbd3de0d8e8300c5825def13e0daf0ce79408a2f","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.1","_npmVersion":"5.2.0","_nodeVersion":"8.1.3","_npmUser":{"name":"superol3g","email":"oleglykasov@gmail.com"},"dist":{"integrity":"sha512-NKnOsQzJpEQtVamCZTN7LCYXZX9kQlKruKYZ0K6cSqSjWJTRPy1XCObhQh4WcltS5REseis1MjI2Y//tF2FqTg==","shasum":"6fa869228dd0f05c65decd6290e99c4fd7151cc1","tarball":"http://registry-npm.ywwl.com/postcss-image-set-polyfill/download/postcss-image-set-polyfill-0.4.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF21itcoEF4kSwgdECp92DPOb2njAfkwxUDJc4m0Z7Q8AiEAksKUBwIJdKYCOFY06Li1V9iHtOsYPqgR9VAESAsibf8="}],"size":11916,"noattachment":false,"key":"/postcss-image-set-polyfill/-/postcss-image-set-polyfill-0.4.1.tgz"},"maintainers":[{"name":"superol3g","email":"oleglykasov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-image-set-polyfill-0.4.1.tgz_1500215966030_0.5450986886862665"},"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":1500215967111,"_cnpm_publish_time":1500215967111,"dist-tags":{"latest":"1.0.0"}}