{"name":"postcss-svgo","version":"2.1.4","description":"Optimise inline SVG with PostCSS.","main":"dist/index.js","scripts":{"contributorAdd":"all-contributors add","contributorGenerate":"all-contributors generate","pretest":"eslint src","prepublish":"del-cli dist && BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/","report":"nyc report --reporter=html","test":"nyc --reporter=text ava src/__tests__","test-012":"nyc --reporter=text ava src/__tests__"},"files":["LICENSE-MIT","dist"],"keywords":["css","minify","optimise","postcss","postcss-plugin","svg","svgo"],"license":"MIT","devDependencies":{"all-contributors-cli":"^3.0.5","ava":"^0.15.0","babel-cli":"^6.4.5","babel-core":"^6.4.5","babel-plugin-add-module-exports":"^0.2.0","babel-preset-es2015":"^6.3.13","babel-preset-es2015-loose":"^7.0.0","babel-preset-stage-0":"^6.3.13","babel-register":"^6.9.0","coveralls":"^2.11.6","del-cli":"^0.2.0","eslint":"^3.0.0","eslint-config-cssnano":"^3.0.0","eslint-plugin-babel":"^3.3.0","eslint-plugin-import":"^1.10.2","nyc":"^7.0.0","pleeease-filters":"^3.0.0"},"homepage":"https://github.com/ben-eb/postcss-svgo","author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"repository":{"type":"git","url":"git+https://github.com/ben-eb/postcss-svgo.git"},"dependencies":{"is-svg":"^2.0.0","postcss":"^5.0.14","postcss-value-parser":"^3.2.3","svgo":"^0.6.1"},"ava":{"require":"babel-register"},"eslintConfig":{"extends":"cssnano"},"gitHead":"68bb1dd243149632080bbf4aa032085165e90bb7","bugs":{"url":"https://github.com/ben-eb/postcss-svgo/issues"},"_id":"postcss-svgo@2.1.4","_shasum":"ea335733dec53ff580b9f4324081cfeaae35cf3b","_from":".","_npmVersion":"3.10.2","_nodeVersion":"5.4.1","_npmUser":{"name":"beneb","email":"beneb.info@gmail.com"},"dist":{"shasum":"ea335733dec53ff580b9f4324081cfeaae35cf3b","tarball":"http://registry-npm.ywwl.com/postcss-svgo/download/postcss-svgo-2.1.4.tgz","integrity":"sha512-pkMSf/RBrSVfas3S18UxIMjsZdA0J3SyghWRgIWRZ3/+w3U8nMhfwgApJ1mtLyIaHeeSXWR2P+F0IHVkYGasDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCy4/k9KIJJ6yFl0uesEZGXWG7B5Ww/HdMGqyFFIXEiVgIhAIF9fRmMQHQ/n6QDXsopsrdyOSMCuJBMMr1E/KaDbdP/"}],"size":5001,"noattachment":false,"key":"/postcss-svgo/-/postcss-svgo-2.1.4.tgz"},"maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/postcss-svgo-2.1.4.tgz_1468272803407_0.08898314251564443"},"directories":{},"readme":"# [postcss][postcss]-svgo\n\n> Optimise inline SVG with PostCSS.\n\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-svgo) do:\n\n```\nnpm install postcss-svgo --save\n```\n\n\n## Example\n\n### Input\n\n```css\nh1 {\n    background: url('data:image/svg+xml;charset=utf-8,<?xml version=\"1.0\" encoding=\"utf-8\"?><!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"yellow\" /></svg>');\n}\n\nh2 {\n    background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgcj0iNDAiIGZpbGw9InllbGxvdyIgLz48IS0tdGVzdCBjb21tZW50LS0+PC9zdmc+');\n}\n```\n\n### Output\n\n```css\nh1 {\n    background: url('data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"%23ff0\"/></svg>');\n}\n\nh2 {\n    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjQwIiBmaWxsPSIjZmYwIi8+PC9zdmc+');\n}\n```\n\n\n## API\n\n### `svgo([options])`\n\n#### options\n\n##### encode\n\nType: `boolean`\nDefault: `undefined`\n\nIf `true`, it will encode URL-unsafe characters such as `<`, `>` and `&`;\n`false` will decode these characters, and `undefined` will neither encode nor\ndecode the original input. Note that regardless of this setting, `#` will\nalways be URL-encoded.\n\n##### plugins\n\nOptionally, you can customise the output by specifying the `plugins` option. You\nwill need to provide the config in comma separated objects, like the example\nbelow. Note that you can either disable the plugin by setting it to `false`,\nor pass different options to change the default behaviour.\n\n```js\nconst postcss = require('postcss');\nconst svgo = require('postcss-svgo');\n\nconst opts = {\n    plugins: [{\n        name: 'preset-default',\n        params: {\n            overrides: {\n                removeViewBox: false,\n                removeComments: false,\n                cleanupNumericValues: {\n                    floatPrecision: 2\n                }\n            }\n        }\n    }]\n};\n\n\npostcss([ svgo(opts) ]).process(css).then((result) => {\n    console.log(result.css)\n});\n```\n\nYou can view the [full list of plugins here][plugins].\n\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n[postcss]: https://github.com/postcss/postcss\n[plugins]: https://svgo.dev/docs/plugins/\n","publish_time":1468272804979,"_cnpm_publish_time":1468272804979,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}