{"name":"postcss-image-set-polyfill","version":"0.3.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":"^5.0.14","postcss-media-query-parser":"^0.2.3"},"devDependencies":{"chai":"2.2.0","eslint":"3.15.0","mocha":"3.2.0"},"scripts":{"test":"mocha","lint":"eslint *.js **/*.js || true"},"gitHead":"446b8ea4fc5ee59001ad4191e886e2aaf137fdf0","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.3.0","_shasum":"0781ba78302c570261fa19ab0a7589bb6b2f2ab2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"superol3g","email":"oleglykasov@gmail.com"},"dist":{"shasum":"0781ba78302c570261fa19ab0a7589bb6b2f2ab2","tarball":"http://registry-npm.ywwl.com/postcss-image-set-polyfill/download/postcss-image-set-polyfill-0.3.0.tgz","integrity":"sha512-RoAhJKjlupHuRxdRudY0tRWkQBAZqVlfOYdde1xPu+AND0Q5gHRX9dpmTTmPFV21w9SahglK4PVsMB5bG4Q0Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD52nFC/+ul3MNd8EuIV4UMilAkpGpNpkvG3wyBoJH5agIgaIR3ulsNoJSUtnNjPZix6MrYfqjAkkPxReac0t7/+7E="}],"size":9050,"noattachment":false,"key":"/postcss-image-set-polyfill/-/postcss-image-set-polyfill-0.3.0.tgz"},"maintainers":[{"name":"superol3g","email":"oleglykasov@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-image-set-polyfill-0.3.0.tgz_1488021841690_0.42102685384452343"},"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":1488021843619,"_cnpm_publish_time":1488021843619,"dist-tags":{"latest":"1.0.0"}}