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
This package has been deprecated with the following message: This SVGO version is no longer supported. Upgrade to v2.x.x.
Generated on Apr 1, 2024 via pnpm

svgo 1.3.0

Nodejs-based tool for optimizing SVG vector graphics files
Package summary
Share
5
issues
3
high severity
vulnerability
1
meta
2
1
moderate severity
license
1
1
low severity
license
1
6
licenses
92
MIT
8
BSD-2-Clause
2
ISC
4
other licenses
BSD-3-Clause
2
MPL-2.0
1
CC0-1.0
1
Package created
27 Sep 2012
Version published
14 Jul 2019
Maintainers
4
Total deps
106
Direct deps
13
License
MIT

Issues

5

3 high severity issues

high
Recommendation: Upgrade to version 2.0.1 or later
via: css-select@2.1.0
via: stable@0.1.8
via: svgo@1.3.0
Collapse
Expand

1 moderate severity issue

moderate
Recommendation: Validate that the package complies with your license policy
via: csso@3.5.1
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: css-tree@1.0.0-alpha.33
Collapse
Expand

Licenses

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
92 Packages, Including:
@types/q@1.5.8
ansi-styles@3.2.1
argparse@1.0.10
array-buffer-byte-length@1.0.1
array.prototype.reduce@1.0.7
arraybuffer.prototype.slice@1.0.3
available-typed-arrays@1.0.7
call-bind@1.0.7
chalk@2.4.2
coa@2.0.2
color-convert@1.9.3
color-name@1.1.3
css-select-base-adapter@0.1.1
css-tree@1.0.0-alpha.29
css-tree@1.0.0-alpha.33
csso@3.5.1
data-view-buffer@1.0.1
data-view-byte-length@1.0.1
data-view-byte-offset@1.0.0
define-data-property@1.1.4
define-properties@1.2.1
dom-serializer@0.2.2
es-abstract@1.23.3
es-array-method-boxes-properly@1.0.0
es-define-property@1.0.0
es-errors@1.3.0
es-object-atoms@1.0.0
es-set-tostringtag@2.0.3
es-to-primitive@1.2.1
escape-string-regexp@1.0.5
for-each@0.3.3
function-bind@1.1.2
function.prototype.name@1.1.6
functions-have-names@1.2.3
get-intrinsic@1.2.4
get-symbol-description@1.0.2
globalthis@1.0.3
gopd@1.0.1
has-bigints@1.0.2
has-flag@3.0.0
has-property-descriptors@1.0.2
has-proto@1.0.3
has-symbols@1.0.3
has-tostringtag@1.0.2
hasown@2.0.2
internal-slot@1.0.7
is-array-buffer@3.0.4
is-bigint@1.0.4
is-boolean-object@1.1.2
is-callable@1.2.7

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
8 Packages, Including:
css-select@2.1.0
css-what@3.4.2
domelementtype@1.3.1
domelementtype@2.3.0
domutils@1.7.0
entities@2.2.0
esprima@4.0.1
nth-check@1.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
2 Packages, Including:
boolbase@1.0.0
sax@1.2.4

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
2 Packages, Including:
source-map@0.5.7
sprintf-js@1.0.3

Mozilla Public License 2.0

Weakly Protective
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
place-warranty
use-patent-claims
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
disclose-source
include-original
1 Packages, Including:
mdn-data@1.1.4

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
1 Packages, Including:
mdn-data@2.0.4
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

13
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
chalk2.4.29.63 kBMIT
prod
coa2.0.216.64 kBMIT
prod
css-select-base-adapter0.1.13.7 kBMIT
prod
css-select2.1.013.01 kBBSD-2-Clause
prod
1
css-tree1.0.0-alpha.33144.26 kBMIT
prod
1
csso3.5.188.16 kBMIT
prod
1
js-yaml3.14.175.07 kBMIT
prod
mkdirp0.5.62.95 kBMIT
prod
object.values1.2.030.78 kBMIT
prod
sax1.2.414.81 kBISC
prod
stable0.1.83.59 kBMIT
prod
1
unquote1.1.11.44 kBMIT
prod
util.promisify1.0.15.94 kBMIT
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.