{
  "manifest": {
    "packageManager": "yarn@2.4.3",
    "name": "svgo",
    "version": "2.8.0",
    "description": "Nodejs-based tool for optimizing SVG vector graphics files",
    "license": "MIT",
    "keywords": [
      "svgo",
      "svg",
      "optimize",
      "minify"
    ],
    "homepage": "https://github.com/svg/svgo",
    "bugs": {
      "url": "https://github.com/svg/svgo/issues"
    },
    "author": {
      "name": "Kir Belevich",
      "email": "kir@belevi.ch",
      "url": "https://github.com/deepsweet"
    },
    "contributors": [
      {
        "name": "Sergey Belov",
        "email": "peimei@ya.ru",
        "url": "https://github.com/arikon"
      },
      {
        "name": "Lev Solntsev",
        "email": "lev.sun@ya.ru",
        "url": "https://github.com/GreLI"
      },
      {
        "name": "Bogdan Chadkin",
        "email": "trysound@yandex.ru",
        "url": "https://github.com/TrySound"
      }
    ],
    "repository": {
      "type": "git",
      "url": "git://github.com/svg/svgo.git"
    },
    "main": "./lib/svgo-node.js",
    "bin": {
      "svgo": "bin/svgo"
    },
    "files": [
      "bin",
      "lib",
      "plugins",
      "dist",
      "!**/*.test.js"
    ],
    "engines": {
      "node": ">=10.13.0"
    },
    "scripts": {
      "test": "NODE_OPTIONS=--experimental-vm-modules jest --maxWorkers=4 --coverage",
      "lint": "eslint --ignore-path .gitignore . && prettier --check \"**/*.js\" --ignore-path .gitignore",
      "fix": "eslint --ignore-path .gitignore --fix . && prettier --write \"**/*.js\" --ignore-path .gitignore",
      "typecheck": "tsc",
      "test-browser": "rollup -c && node ./test/browser.js",
      "test-regression": "node ./test/regression-extract.js && NO_DIFF=1 node ./test/regression.js",
      "prepublishOnly": "rm -rf dist && rollup -c"
    },
    "prettier": {
      "singleQuote": true
    },
    "eslintConfig": {
      "parserOptions": {
        "ecmaVersion": "2021"
      },
      "env": {
        "node": true,
        "es2021": true
      },
      "extends": [
        "eslint:recommended"
      ],
      "overrides": [
        {
          "files": [
            "rollup.config.js"
          ],
          "parserOptions": {
            "sourceType": "module"
          }
        },
        {
          "files": [
            "**/*.test.js"
          ],
          "env": {
            "jest": true
          }
        }
      ]
    },
    "jest": {
      "coveragePathIgnorePatterns": [
        "fixtures"
      ]
    },
    "dependencies": {
      "@trysound/sax": "0.2.0",
      "commander": "^7.2.0",
      "css-select": "^4.1.3",
      "css-tree": "^1.1.3",
      "csso": "^4.2.0",
      "picocolors": "^1.0.0",
      "stable": "^0.1.8"
    },
    "devDependencies": {
      "@rollup/plugin-commonjs": "^20.0.0",
      "@rollup/plugin-json": "^4.1.0",
      "@rollup/plugin-node-resolve": "^13.0.4",
      "@types/css-tree": "^1.0.6",
      "@types/csso": "^4.2.0",
      "@types/jest": "^27.0.1",
      "del": "^6.0.0",
      "eslint": "^7.32.0",
      "jest": "^27.2.5",
      "node-fetch": "^2.6.2",
      "pixelmatch": "^5.2.1",
      "playwright": "^1.14.1",
      "pngjs": "^6.0.0",
      "prettier": "^2.4.0",
      "rollup": "^2.56.3",
      "rollup-plugin-terser": "^7.0.2",
      "tar-stream": "^2.2.0",
      "typescript": "^4.4.3"
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-svgo-2.8.0-4ff80cce6710dc2795f0c7c74101e6764cfccd24-integrity/node_modules/svgo/package.json",
    "readmeFilename": "README.md",
    "readme": "<div align=\"center\">\n  <img src=\"./logo/logo-web.svg\" width=\"348.61\" height=\"100\" alt=\"SVGO logo\"/>\n</div>\n\n## SVGO [![npm version](https://img.shields.io/npm/v/svgo)](https://npmjs.org/package/svgo) [![Discord](https://img.shields.io/discord/815166721315831868)](https://discord.gg/z8jX8NYxrE)\n\n**SVG O**ptimizer is a Node.js-based tool for optimizing SVG vector graphics files.\n\n## Why?\n\nSVG files, especially those exported from various editors, usually contain a lot of redundant and useless information. This can include editor metadata, comments, hidden elements, default or non-optimal values and other stuff that can be safely removed or converted without affecting the SVG rendering result.\n\n## Installation\n\n```sh\nnpm -g install svgo\n```\n\nor\n\n```sh\nyarn global add svgo\n```\n\n## CLI usage\n\n```sh\nsvgo one.svg two.svg -o one.min.svg two.min.svg\n```\n\nOr use the `--folder`/`-f` flag to optimize a whole folder of SVG icons\n\n```sh\nsvgo -f ./path/to/folder/with/svg/files -o ./path/to/folder/with/svg/output\n```\n\nSee help for advanced usage\n\n```sh\nsvgo --help\n```\n\n## Configuration\n\nSome options can be configured with CLI though it may be easier to have the configuration in a separate file.\nSVGO automatically loads configuration from `svgo.config.js` or module specified with `--config` flag.\n\n```js\nmodule.exports = {\n  multipass: true, // boolean. false by default\n  datauri: 'enc', // 'base64', 'enc' or 'unenc'. 'base64' by default\n  js2svg: {\n    indent: 2, // string with spaces or number of spaces. 4 by default\n    pretty: true, // boolean, false by default\n  },\n};\n```\n\nSVGO has a plugin-based architecture, so almost every optimization is a separate plugin.\nThere is a set of [built-in plugins](#built-in-plugins). See how to configure them:\n\n```js\nmodule.exports = {\n  plugins: [\n    // enable a built-in plugin by name\n    'prefixIds',\n\n    // or by expanded version\n    {\n      name: 'prefixIds',\n    },\n\n    // some plugins allow/require to pass options\n    {\n      name: 'prefixIds',\n      params: {\n        prefix: 'my-prefix',\n      },\n    },\n  ],\n};\n```\n\nThe default preset of plugins is fully overridden if the `plugins` field is specified.\nUse `preset-default` plugin to customize plugins options.\n\n```js\nmodule.exports = {\n  plugins: [\n    {\n      name: 'preset-default',\n      params: {\n        overrides: {\n          // customize options for plugins included in preset\n          inlineStyles: {\n            onlyMatchedOnce: false,\n          },\n\n          // or disable plugins\n          removeDoctype: false,\n        },\n      },\n    },\n\n    // enable builtin plugin not included in default preset\n    'prefixIds',\n\n    // enable and configure builtin plugin not included in preset\n    {\n      name: 'sortAttrs',\n      params: {\n        xmlnsOrder: 'alphabetical',\n      },\n    },\n  ],\n};\n```\n\nDefault preset includes the following list of plugins:\n\n- removeDoctype\n- removeXMLProcInst\n- removeComments\n- removeMetadata\n- removeEditorsNSData\n- cleanupAttrs\n- mergeStyles\n- inlineStyles\n- minifyStyles\n- cleanupIDs\n- removeUselessDefs\n- cleanupNumericValues\n- convertColors\n- removeUnknownsAndDefaults\n- removeNonInheritableGroupAttrs\n- removeUselessStrokeAndFill\n- removeViewBox\n- cleanupEnableBackground\n- removeHiddenElems\n- removeEmptyText\n- convertShapeToPath\n- convertEllipseToCircle\n- moveElemsAttrsToGroup\n- moveGroupAttrsToElems\n- collapseGroups\n- convertPathData\n- convertTransform\n- removeEmptyAttrs\n- removeEmptyContainers\n- mergePaths\n- removeUnusedNS\n- sortDefsChildren\n- removeTitle\n- removeDesc\n\nIt's also possible to specify a custom plugin:\n\n```js\nconst anotherCustomPlugin = require('./another-custom-plugin.js');\nmodule.exports = {\n  plugins: [\n    {\n      name: 'customPluginName',\n      type: 'perItem', // 'perItem', 'perItemReverse' or 'full'\n      params: {\n        optionName: 'optionValue',\n      },\n      fn: (ast, params, info) => {},\n    },\n    anotherCustomPlugin,\n  ],\n};\n```\n\n## API usage\n\nSVGO provides a few low level utilities.\n\n### optimize\n\nThe core of SVGO is `optimize` function.\n\n```js\nconst { optimize } = require('svgo');\nconst result = optimize(svgString, {\n  // optional but recommended field\n  path: 'path-to.svg',\n  // all config fields are also available here\n  multipass: true,\n});\nconst optimizedSvgString = result.data;\n```\n\n### loadConfig\n\nIf you write a tool on top of SVGO you might need a way to load SVGO config.\n\n```js\nconst { loadConfig } = require('svgo');\nconst config = await loadConfig();\n\n// you can also specify a relative or absolute path and customize the current working directory\nconst config = await loadConfig(configFile, cwd);\n```\n\n## Built-in plugins\n\n| Plugin                                                                                                              | Description                                                                                                                                              | Default    |\n| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |\n| [cleanupAttrs](https://github.com/svg/svgo/blob/master/plugins/cleanupAttrs.js)                                     | cleanup attributes from newlines, trailing, and repeating spaces                                                                                         | `enabled`  |\n| [mergeStyles](https://github.com/svg/svgo/blob/master/plugins/mergeStyles.js)                                       | merge multiple style elements into one                                                                                                                   | `enabled`  |\n| [inlineStyles](https://github.com/svg/svgo/blob/master/plugins/inlineStyles.js)                                     | move and merge styles from `<style>` elements to element `style` attributes                                                                              | `enabled`  |\n| [removeDoctype](https://github.com/svg/svgo/blob/master/plugins/removeDoctype.js)                                   | remove `doctype` declaration                                                                                                                             | `enabled`  |\n| [removeXMLProcInst](https://github.com/svg/svgo/blob/master/plugins/removeXMLProcInst.js)                           | remove XML processing instructions                                                                                                                       | `enabled`  |\n| [removeComments](https://github.com/svg/svgo/blob/master/plugins/removeComments.js)                                 | remove comments                                                                                                                                          | `enabled`  |\n| [removeMetadata](https://github.com/svg/svgo/blob/master/plugins/removeMetadata.js)                                 | remove `<metadata>`                                                                                                                                      | `enabled`  |\n| [removeTitle](https://github.com/svg/svgo/blob/master/plugins/removeTitle.js)                                       | remove `<title>`                                                                                                                                         | `enabled`  |\n| [removeDesc](https://github.com/svg/svgo/blob/master/plugins/removeDesc.js)                                         | remove `<desc>`                                                                                                                                          | `enabled`  |\n| [removeUselessDefs](https://github.com/svg/svgo/blob/master/plugins/removeUselessDefs.js)                           | remove elements of `<defs>` without `id`                                                                                                                 | `enabled`  |\n| [removeXMLNS](https://github.com/svg/svgo/blob/master/plugins/removeXMLNS.js)                                       | removes the `xmlns` attribute (for inline SVG)                                                                                                           | `disabled` |\n| [removeEditorsNSData](https://github.com/svg/svgo/blob/master/plugins/removeEditorsNSData.js)                       | remove editors namespaces, elements, and attributes                                                                                                      | `enabled`  |\n| [removeEmptyAttrs](https://github.com/svg/svgo/blob/master/plugins/removeEmptyAttrs.js)                             | remove empty attributes                                                                                                                                  | `enabled`  |\n| [removeHiddenElems](https://github.com/svg/svgo/blob/master/plugins/removeHiddenElems.js)                           | remove hidden elements                                                                                                                                   | `enabled`  |\n| [removeEmptyText](https://github.com/svg/svgo/blob/master/plugins/removeEmptyText.js)                               | remove empty Text elements                                                                                                                               | `enabled`  |\n| [removeEmptyContainers](https://github.com/svg/svgo/blob/master/plugins/removeEmptyContainers.js)                   | remove empty Container elements                                                                                                                          | `enabled`  |\n| [removeViewBox](https://github.com/svg/svgo/blob/master/plugins/removeViewBox.js)                                   | remove `viewBox` attribute when possible                                                                                                                 | `enabled`  |\n| [cleanupEnableBackground](https://github.com/svg/svgo/blob/master/plugins/cleanupEnableBackground.js)               | remove or cleanup `enable-background` attribute when possible                                                                                            | `enabled`  |\n| [minifyStyles](https://github.com/svg/svgo/blob/master/plugins/minifyStyles.js)                                     | minify `<style>` elements content with [CSSO](https://github.com/css/csso)                                                                               | `enabled`  |\n| [convertStyleToAttrs](https://github.com/svg/svgo/blob/master/plugins/convertStyleToAttrs.js)                       | convert styles into attributes                                                                                                                           | `disabled` |\n| [convertColors](https://github.com/svg/svgo/blob/master/plugins/convertColors.js)                                   | convert colors (from `rgb()` to `#rrggbb`, from `#rrggbb` to `#rgb`)                                                                                     | `enabled`  |\n| [convertPathData](https://github.com/svg/svgo/blob/master/plugins/convertPathData.js)                               | convert Path data to relative or absolute (whichever is shorter), convert one segment to another, trim useless delimiters, smart rounding, and much more | `enabled`  |\n| [convertTransform](https://github.com/svg/svgo/blob/master/plugins/convertTransform.js)                             | collapse multiple transforms into one, convert matrices to the short aliases, and much more                                                              | `enabled`  |\n| [removeUnknownsAndDefaults](https://github.com/svg/svgo/blob/master/plugins/removeUnknownsAndDefaults.js)           | remove unknown elements content and attributes, remove attributes with default values                                                                    | `enabled`  |\n| [removeNonInheritableGroupAttrs](https://github.com/svg/svgo/blob/master/plugins/removeNonInheritableGroupAttrs.js) | remove non-inheritable group's \"presentation\" attributes                                                                                                 | `enabled`  |\n| [removeUselessStrokeAndFill](https://github.com/svg/svgo/blob/master/plugins/removeUselessStrokeAndFill.js)         | remove useless `stroke` and `fill` attributes                                                                                                            | `enabled`  |\n| [removeUnusedNS](https://github.com/svg/svgo/blob/master/plugins/removeUnusedNS.js)                                 | remove unused namespaces declaration                                                                                                                     | `enabled`  |\n| [prefixIds](https://github.com/svg/svgo/blob/master/plugins/prefixIds.js)                                           | prefix IDs and classes with the SVG filename or an arbitrary string                                                                                      | `disabled` |\n| [cleanupIDs](https://github.com/svg/svgo/blob/master/plugins/cleanupIDs.js)                                         | remove unused and minify used IDs                                                                                                                        | `enabled`  |\n| [cleanupNumericValues](https://github.com/svg/svgo/blob/master/plugins/cleanupNumericValues.js)                     | round numeric values to the fixed precision, remove default `px` units                                                                                   | `enabled`  |\n| [cleanupListOfValues](https://github.com/svg/svgo/blob/master/plugins/cleanupListOfValues.js)                       | round numeric values in attributes that take a list of numbers (like `viewBox` or `enable-background`)                                                   | `disabled` |\n| [moveElemsAttrsToGroup](https://github.com/svg/svgo/blob/master/plugins/moveElemsAttrsToGroup.js)                   | move elements' attributes to their enclosing group                                                                                                       | `enabled`  |\n| [moveGroupAttrsToElems](https://github.com/svg/svgo/blob/master/plugins/moveGroupAttrsToElems.js)                   | move some group attributes to the contained elements                                                                                                     | `enabled`  |\n| [collapseGroups](https://github.com/svg/svgo/blob/master/plugins/collapseGroups.js)                                 | collapse useless groups                                                                                                                                  | `enabled`  |\n| [removeRasterImages](https://github.com/svg/svgo/blob/master/plugins/removeRasterImages.js)                         | remove raster images                                                                                                                                     | `disabled` |\n| [mergePaths](https://github.com/svg/svgo/blob/master/plugins/mergePaths.js)                                         | merge multiple Paths into one                                                                                                                            | `enabled`  |\n| [convertShapeToPath](https://github.com/svg/svgo/blob/master/plugins/convertShapeToPath.js)                         | convert some basic shapes to `<path>`                                                                                                                    | `enabled`  |\n| [convertEllipseToCircle](https://github.com/svg/svgo/blob/master/plugins/convertEllipseToCircle.js)                 | convert non-eccentric `<ellipse>` to `<circle>`                                                                                                          | `enabled`  |\n| [sortAttrs](https://github.com/svg/svgo/blob/master/plugins/sortAttrs.js)                                           | sort element attributes for epic readability                                                                                                             | `disabled` |\n| [sortDefsChildren](https://github.com/svg/svgo/blob/master/plugins/sortDefsChildren.js)                             | sort children of `<defs>` in order to improve compression                                                                                                | `enabled`  |\n| [removeDimensions](https://github.com/svg/svgo/blob/master/plugins/removeDimensions.js)                             | remove `width`/`height` and add `viewBox` if it's missing (opposite to removeViewBox, disable it first)                                                  | `disabled` |\n| [removeAttrs](https://github.com/svg/svgo/blob/master/plugins/removeAttrs.js)                                       | remove attributes by pattern                                                                                                                             | `disabled` |\n| [removeAttributesBySelector](https://github.com/svg/svgo/blob/master/plugins/removeAttributesBySelector.js)         | removes attributes of elements that match a CSS selector                                                                                                 | `disabled` |\n| [removeElementsByAttr](https://github.com/svg/svgo/blob/master/plugins/removeElementsByAttr.js)                     | remove arbitrary elements by `ID` or `className`                                                                                                         | `disabled` |\n| [addClassesToSVGElement](https://github.com/svg/svgo/blob/master/plugins/addClassesToSVGElement.js)                 | add classnames to an outer `<svg>` element                                                                                                               | `disabled` |\n| [addAttributesToSVGElement](https://github.com/svg/svgo/blob/master/plugins/addAttributesToSVGElement.js)           | adds attributes to an outer `<svg>` element                                                                                                              | `disabled` |\n| [removeOffCanvasPaths](https://github.com/svg/svgo/blob/master/plugins/removeOffCanvasPaths.js)                     | removes elements that are drawn outside of the viewbox                                                                                                   | `disabled` |\n| [removeStyleElement](https://github.com/svg/svgo/blob/master/plugins/removeStyleElement.js)                         | remove `<style>` elements                                                                                                                                | `disabled` |\n| [removeScriptElement](https://github.com/svg/svgo/blob/master/plugins/removeScriptElement.js)                       | remove `<script>` elements                                                                                                                               | `disabled` |\n| [reusePaths](https://github.com/svg/svgo/blob/master/plugins/reusePaths.js)                                         | Find duplicated <path> elements and replace them with <use> links                                                                                        | `disabled` |\n\n## Other Ways to Use SVGO\n\n- as a web app – [SVGOMG](https://jakearchibald.github.io/svgomg/)\n- as a GitHub Action – [SVGO Action](https://github.com/marketplace/actions/svgo-action)\n- as a Grunt task – [grunt-svgmin](https://github.com/sindresorhus/grunt-svgmin)\n- as a Gulp task – [gulp-svgmin](https://github.com/ben-eb/gulp-svgmin)\n- as a Mimosa module – [mimosa-minify-svg](https://github.com/dbashford/mimosa-minify-svg)\n- as an OSX Folder Action – [svgo-osx-folder-action](https://github.com/svg/svgo-osx-folder-action)\n- as a webpack loader – [image-webpack-loader](https://github.com/tcoopman/image-webpack-loader)\n- as a Telegram Bot – [svgo_bot](https://github.com/maksugr/svgo_bot)\n- as a PostCSS plugin – [postcss-svgo](https://github.com/ben-eb/postcss-svgo)\n- as an Inkscape plugin – [inkscape-svgo](https://github.com/konsumer/inkscape-svgo)\n- as a Sketch plugin - [svgo-compressor](https://github.com/BohemianCoding/svgo-compressor)\n- as a macOS app - [Image Shrinker](https://image-shrinker.com)\n- as a Rollup plugin - [rollup-plugin-svgo](https://github.com/porsager/rollup-plugin-svgo)\n- as a VS Code plugin - [vscode-svgo](https://github.com/1000ch/vscode-svgo)\n- as a Atom plugin - [atom-svgo](https://github.com/1000ch/atom-svgo)\n- as a Sublime plugin - [Sublime-svgo](https://github.com/1000ch/Sublime-svgo)\n- as a Figma plugin - [Advanced SVG Export](https://www.figma.com/c/plugin/782713260363070260/Advanced-SVG-Export)\n- as a Linux app - [Oh My SVG](https://github.com/sonnyp/OhMySVG)\n- as a Browser extension - [SVG Gobbler](https://github.com/rossmoody/svg-gobbler)\n- as an API - [Vector Express](https://github.com/smidyo/vectorexpress-api#convertor-svgo)\n\n## Donators\n\n| [<img src=\"https://sheetjs.com/sketch128.png\" width=\"80\">](https://sheetjs.com/) | [<img src=\"https://raw.githubusercontent.com/fontello/fontello/master/fontello-image.svg\" width=\"80\">](https://fontello.com/) |\n| :------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------: |\n|                       [SheetJS LLC](https://sheetjs.com/)                        |                                               [Fontello](https://fontello.com/)                                               |\n\n## License and Copyright\n\nThis software is released under the terms of the [MIT license](https://github.com/svg/svgo/blob/master/LICENSE).\n\nLogo by [André Castillo](https://github.com/DerianAndre).\n",
    "licenseText": "MIT License\n\nCopyright (c) Kir Belevich\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/svgo/-/svgo-2.8.0.tgz#4ff80cce6710dc2795f0c7c74101e6764cfccd24",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/svgo/-/svgo-2.8.0.tgz",
    "hash": "4ff80cce6710dc2795f0c7c74101e6764cfccd24",
    "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==",
    "registry": "npm",
    "packageName": "svgo",
    "cacheIntegrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg== sha1-T/gMzmcQ3CeV8MfHQQHmdkz8zSQ="
  },
  "registry": "npm",
  "hash": "4ff80cce6710dc2795f0c7c74101e6764cfccd24"
}