File: //opt/code/node_modules/cssnano/node_modules/postcss-svgo/package.json
{
"name": "postcss-svgo",
"version": "2.1.6",
"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.16.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": "^2.0.1",
"nyc": "^10.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://github.com/ben-eb/postcss-svgo"
},
"dependencies": {
"is-svg": "^2.0.0",
"postcss": "^5.0.14",
"postcss-value-parser": "^3.2.3",
"svgo": "^0.7.0"
},
"ava": {
"require": "babel-register"
},
"eslintConfig": {
"extends": "cssnano"
},
"readme": "# [postcss][postcss]-svgo [][ci] [][npm] [][deps]\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```\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```\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\nThanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n| [<img src=\"https://avatars.githubusercontent.com/u/1282980?v=3\" width=\"100px;\"/><br /><sub>Ben Briggs</sub>](http://beneb.info)<br />[๐ป](https://github.com/ben-eb/postcss-svgo/commits?author=ben-eb) [๐](https://github.com/ben-eb/postcss-svgo/commits?author=ben-eb) ๐ [โ ๏ธ](https://github.com/ben-eb/postcss-svgo/commits?author=ben-eb) | [<img src=\"https://avatars.githubusercontent.com/u/7263665?v=3\" width=\"100px;\"/><br /><sub>Sebastian Misch</sub>](https://sebastian-misch.de)<br />[๐ป](https://github.com/ben-eb/postcss-svgo/commits?author=sbstnmsch) [โ ๏ธ](https://github.com/ben-eb/postcss-svgo/commits?author=sbstnmsch) | [<img src=\"https://avatars.githubusercontent.com/u/11319202?v=3\" width=\"100px;\"/><br /><sub>ะััะตัะปะฐะฒ ะััะตะฝะบะพ</sub>](https://github.com/ophyros)<br />[๐ป](https://github.com/ben-eb/postcss-svgo/commits?author=ophyros) [โ ๏ธ](https://github.com/ben-eb/postcss-svgo/commits?author=ophyros) | [<img src=\"https://avatars.githubusercontent.com/u/1131567?v=3\" width=\"100px;\"/><br /><sub>shinnn</sub>](https://shinnn.github.io)<br />[๐ป](https://github.com/ben-eb/postcss-svgo/commits?author=shinnn) | [<img src=\"https://avatars.githubusercontent.com/u/45338?v=3\" width=\"100px;\"/><br /><sub>Jung-gun Lim</sub>](https://github.com/j6lim)<br />[๐](https://github.com/ben-eb/postcss-svgo/issues?q=author%3Aj6lim) | [<img src=\"https://avatars.githubusercontent.com/u/5635476?v=3\" width=\"100px;\"/><br /><sub>Bogdan Chadkin</sub>](https://github.com/TrySound)<br />[๐ป](https://github.com/ben-eb/postcss-svgo/commits?author=TrySound) ๐ [โ ๏ธ](https://github.com/ben-eb/postcss-svgo/commits?author=TrySound) | [<img src=\"https://avatars.githubusercontent.com/u/368561?v=3\" width=\"100px;\"/><br /><sub>Piotr Walczyszyn</sub>](http://outof.me)<br />[๐](https://github.com/ben-eb/postcss-svgo/issues?q=author%3Apwalczyszyn) |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors] specification. Contributions of\nany kind welcome!\n\n## License\n\nMIT ยฉ [Ben Briggs](http://beneb.info)\n\n\n[all-contributors]: https://github.com/kentcdodds/all-contributors\n[ci]: https://travis-ci.org/ben-eb/postcss-svgo\n[deps]: https://gemnasium.com/ben-eb/postcss-svgo\n[npm]: http://badge.fury.io/js/postcss-svgo\n[postcss]: https://github.com/postcss/postcss\n[plugins]: https://github.com/svg/svgo/tree/master/plugins\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/ben-eb/postcss-svgo/issues"
},
"_id": "postcss-svgo@2.1.6",
"dist": {
"shasum": "b57b29269b3888d8aa9688fd22d2b09f79f8c3e9"
},
"_from": "postcss-svgo@^2.1.1",
"_resolved": "http://registry.npmjs.org/postcss-svgo/-/postcss-svgo-2.1.6.tgz"
}