Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 10, 2024 via pnpm

svgo 3.0.2

Nodejs-based tool for optimizing SVG vector graphics files
Package summary
Share
2
issues
2
low severity
license
2
5
licenses
7
BSD-2-Clause
6
MIT
3
ISC
3
other licenses
CC0-1.0
2
BSD-3-Clause
1
Package created
27 Sep 2012
Version published
18 Nov 2022
Maintainers
4
Total deps
19
Direct deps
6
License
MIT

Issues

2

2 low severity issues

low
Recommendation: Read and validate the license terms
via: csso@5.0.5
Recommendation: Read and validate the license terms
via: css-tree@2.3.1
Collapse
Expand

Licenses

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
css-select@5.1.0
css-what@6.1.0
domelementtype@2.3.0
domhandler@5.0.3
domutils@3.1.0
entities@4.5.0
nth-check@2.1.1

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
commander@7.2.0
css-tree@2.2.1
css-tree@2.3.1
csso@5.0.5
dom-serializer@2.0.0
svgo@3.0.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
@trysound/sax@0.2.0
boolbase@1.0.0
picocolors@1.0.0

Creative Commons Zero v1.0 Universal

Public Domain
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
2 Packages, Including:
mdn-data@2.0.28
mdn-data@2.0.30

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
source-map-js@1.2.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of svgo 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@trysound/sax0.2.013.22 kBISC
prod
commander7.2.037.27 kBMIT
prod
css-select5.1.033.52 kBBSD-2-Clause
prod
css-tree2.3.1272.24 kBMIT
prod
1
csso5.0.5164.22 kBMIT
prod
1
picocolors1.0.02.35 kBISC
prod

Visualizations

Frequently Asked Questions

What does svgo do?

SVGO, or SVG Optimizer, is a Node.js-based tool designed to optimize SVG (Scalable Vector Graphics) files. SVG files, often exported from various editors, can contain redundant and unnecessary information such as editor metadata, comments, hidden elements, non-optimal values, and more. SVGO is capable of removing or converting this extraneous information without affecting the SVG file's rendering result, thereby optimizing the file for better performance.

How do you use svgo?

To start using SVGO, it has to be installed via npm or yarn. You can install it globally on your system using the following commands:

Using npm:

npm -g install svgo

Or using yarn:

yarn global add svgo

For processing individual files, use the svgo command followed by the filenames:

svgo one.svg two.svg -o one.min.svg two.min.svg

For processing a directory of SVG files recursively, use the -f or --folder option:

svgo -f ./path/to/folder/with/svg/files -o ./path/to/folder/with/svg/output

Execution options can be viewed using the --help command:

svgo --help

SVGO also offers various configurations through a plugin-based architecture. You can create a svgo.config.js file or specify a path to your configuration file using the --config ./path/myconfig.js command. Here is an example of a possible configuration:

// svgo.config.js
module.exports = {
  multipass: true, // boolean. false by default
  datauri: 'enc', // 'base64' (default), 'enc' or 'unenc'.
  js2svg: {
    indent: 2, // string with spaces or number of spaces. 4 by default
    pretty: true, // boolean, false by default
  },
  plugins: [
    'preset-default',
    'prefixIds',
    {
      name: 'sortAttrs',
      params: {
        xmlnsOrder: 'alphabetical',
      },
    },
  ],
};

Where are the svgo docs?

The complete documentation of SVGO including detailed usage and configuration guidelines, as well as the description of all built-in plugins, can be found on the SVGO GitHub repository: github.com/svg/svgo. The repository provides comprehensive information and examples to help you get the most out of the SVG Optimizer tool.