{"name":"postcss-svgo","version":"4.0.0-nightly.2020.10.20","description":"Optimise inline SVG with PostCSS.","main":"dist/index.js","scripts":{"prebuild":"","build":"cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.js --out-dir dist --ignore \"**/__tests__/\"","prepublish":""},"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":{"is-svg":"^4.1.0","postcss":"^7.0.16","postcss-value-parser":"^3.3.1","svgo":"^1.2.2"},"bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"engines":{"node":">=10.13.0"},"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\nNote that postcss-svgo is an *asynchronous* processor. It cannot be used\nlike this:\n\n```js\nvar result = postcss([ svgo() ]).process(css).css;\nconsole.log(result);\n```\n\nInstead make sure your PostCSS runner uses the asynchronous API:\n\n```js\npostcss([ svgo() ]).process(css).then(function (result) {\n    console.log(result.css);\n});\n```\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\nvar postcss = require('postcss');\nvar svgo = require('postcss-svgo');\n\nvar opts = {\n    plugins: [{\n        removeDoctype: false\n    }, {\n        removeComments: false\n    }, {\n        cleanupNumericValues: {\n            floatPrecision: 2\n        }\n    }, {\n        convertColors: {\n            names2hex: false,\n            rgb2hex: false\n        }\n    }]\n};\n\npostcss([ svgo(opts) ]).process(css).then(function (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://github.com/svg/svgo/tree/master/plugins\n","readmeFilename":"README.md","_id":"postcss-svgo@4.0.0-nightly.2020.10.20","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-jWK5fszd4nsMmFa9z+tErKJDuvmKHoNGblHBIJHUnXl4hat9sITiRoLuhTLeFCmSWLcWAhN7YdcbfhqxYogoNA==","shasum":"00986c186f54a32cfbaeab41505a343c49aff0ae","tarball":"http://registry-npm.ywwl.com/postcss-svgo/download/postcss-svgo-4.0.0-nightly.2020.10.20.tgz","fileCount":5,"unpackedSize":9230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjxzRCRA9TVsSAnZWagAAAhoQAIB4Tx/dPlAUqZH+XBR9\nAQlZd+U0IyUinpYUqslc0YPvt+wn7LOJdg+NPCpZtq3JV2KpSjmCKpQz+T2+\npv3irG8vaN6cOgLWG4RXGz8F92uiSrtNDt4mmFLJZjYTA100kklesN/aaOOK\nAY7jzI+HxN+s73NTT12jNORlxa0YxlSc50Wj9+WxWwBAOhziuvNdBKvkI8lh\nJPC4uukVa61flDgKj46CnWKbGtTBOu1xjnuh0nRYu+ZdjgbGtqWc583Q8Qqm\nbjs3NyFdGuBM1NsJTYZU7KBE+qtAsWCamlCaINjKnmKp/NRPHe3oUOLuzrx5\nLk6IknxlLcIWv9PT6xtfrHB/Szx87qyrqKxCxU2wZbyE+a+IOYLIlcJLhpnQ\nRsnfFNSFygcnDy0gZ4WzLHYp7lZjxYqRfJrkae2ws43a0RFFOaQuQxud5UDp\nCG1PJjx4olmZ1ogPEGyIYSWQQn+FOnhqZLT8fw4y4VOxA4cv9hM2kWosCBp2\n6RMDp2prH3C7NMOH1A/Te7o45Mdkelg9ATFnWl48decKW1e3geXoIaS91PRi\nBXM850UD/xY3ld1vrQQXDqYPu45CPQN8C4aIhe4/6PpJNa+Z28WJT+J8uE19\nOi0XTm+Eh6KCYNFUwNfwG99XBwf8xHM+7cMStANER9mdRAk/Z7YWwe22Dex/\nm9Jp\r\n=c+Rv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHE/WOlU6olMgYr+2H/3Eq1R7dNzcq+k+7bKuLpxYU2AIhAJy8T9N3ymhukkAx08ZTWQCddjou1y5cNaazlUNoPfWq"}],"size":4253,"noattachment":false,"key":"/postcss-svgo/-/postcss-svgo-4.0.0-nightly.2020.10.20.tgz"},"maintainers":[{"name":"beneb","email":"beneb.info@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"}],"_npmUser":{"name":"cssnano-bot","email":"sahaaniketh@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-svgo_4.0.0-nightly.2020.10.20_1603214544651_0.2771612493815945"},"_hasShrinkwrap":false,"publish_time":1603214544874,"_cnpm_publish_time":1603214544874,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}