{"name":"postcss-svgo","version":"5.0.3","description":"Optimise inline SVG with PostCSS.","main":"dist/index.js","scripts":{"prebuild":"rimraf dist","build":"cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"","prepare":"yarn build"},"keywords":["css","minify","optimise","postcss","postcss-plugin","svg","svgo"],"license":"MIT","homepage":"https://github.com/cssnano/cssnano","author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"repository":{"type":"git","url":"git+https://github.com/cssnano/cssnano.git"},"dependencies":{"postcss-value-parser":"^4.1.0","svgo":"^2.7.0"},"bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"engines":{"node":"^10 || ^12 || >=14.0"},"devDependencies":{"postcss":"^8.2.15"},"peerDependencies":{"postcss":"^8.2.15"},"gitHead":"2d84646671c7075f8dae35de310351aac3436bc0","_id":"postcss-svgo@5.0.3","_nodeVersion":"16.11.1","_npmVersion":"lerna/4.0.0/node@v16.11.1+x64 (linux)","dist":{"integrity":"sha512-41XZUA1wNDAZrQ3XgWREL/M2zSw8LJPvb5ZWivljBsUQAGoEKMYm6okHsTjJxKYI4M75RQEH4KYlEM52VwdXVA==","shasum":"d945185756e5dfaae07f9edb0d3cae7ff79f9b30","tarball":"http://registry-npm.ywwl.com/postcss-svgo/download/postcss-svgo-5.0.3.tgz","fileCount":5,"unpackedSize":9623,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh23AyCRA9TVsSAnZWagAAYxYQAICKAqj2allMJ/2VxPVq\n9IHOoI6LejiGvDtixvvI89QKOHUMEEduQn7y5J9A87a9EBTqB9eozqIk9N2S\nAUml5hUvsGvF4ixLsWuQBbBsp9owMf8BNk0PrIhTvmvbVFSwgq8bo3rY/9hQ\nmjiIkm07ryIAdtzOec6hlgIsFg3y/8DckItdE7Xx/NVzUgYHM3N0aEv82L+i\nRw14ItVyrDTvldOlKpbTIH8bleDKeWbZZbZ2+QWrFYpRfKPjPjUjIf510+k2\nSjCLP71juG9GHB7x/v2J91LL1KQCtHQvJrUxLnVRljiVe6TqBtGFGTGETsoa\nWTNKOtXVw/iBSfBs7U6DzvyaKOtpkKqFvFlnaoEYbdGoX8ipbU5A7AVt3ndb\n5qN3BFPDKveF0syJaXBL1TnNFyofF5fQQL0WmCrUcK3vmeWuw6GI8AyiQJQC\nHgnJY0hcdlN6kQ34nnjbe5uylAaoN8TnrNLb3BKynWgfR38OLca71V06Dnep\nyhKTd8+XUyGwZBe+nGLwZk/bFqFCnZzVxp3seNcUErvk+k9DNpGs/K71d0xp\n2sBQ/RnckGEM8qodgM+iCQSeeUq0aepwCTE1LY46cXiVi4iP0uQ5FpTTPdBw\nSdWO3fdU0iMlwI+s6tmZUg3g1ARpN6XgLzd6Ao15dhVS4m75shBfoE9+jvZU\ni35g\r\n=iLlU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMYTV4KR0M1dd670nGYxyfouLXn1ls8MEgG3tf9jHqNQIhAJnCwhHDnLzV2dXzyqQ+Bhuj/e9MoMJ7xW+E+H/m6eQ/"}],"size":4494,"noattachment":false,"key":"/postcss-svgo/-/postcss-svgo-5.0.3.tgz"},"_npmUser":{"name":"ludovicofischer","email":"livrerie@gmail.com"},"directories":{},"maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"ludovicofischer","email":"livrerie@gmail.com"},{"name":"ai","email":"andrey@sitnik.ru"},{"name":"chriseppstein","email":"chris@eppsteins.net"},{"name":"andyjansson","email":"jansson.andy@gmail.com"},{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"cssnano-bot","email":"sahaaniketh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-svgo_5.0.3_1635856235712_0.5781247717365081"},"_hasShrinkwrap":false,"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":1635856235847,"_cnpm_publish_time":1635856235847,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}