svgo
svgo
TLDR
Optimize a file using the default plugins (overwrites the original file)
Optimize a file and save the result to another file
Optimize all SVG files within a directory (overwrites the original files)
Optimize all SVG files within a directory and save the resulting files to another directory
Optimize SVG content passed from another command, and save the result to a file
Optimize a file and print out the result
Show available plugins
Help
Usage: svgo [options] [INPUT...]
Nodejs-based tool for optimizing SVG vector graphics files
Arguments:
INPUT Alias to --input
Options:
-v, --version output the version number
-i, --input
-s, --string
-f, --folder
-o, --output
input), "-" for STDOUT
-p, --precision
overrides plugins params
--config
--datauri
(enc) or unencoded (unenc)
--multipass Pass over SVGs multiple times to ensure all
optimizations are applied
--pretty Make SVG pretty printed
--indent
--eol
If unspecified, uses platform default.
--final-newline Ensure SVG ends with a line break
-r, --recursive Use with '--folder'. Optimizes *.svg files in
folders recursively.
--exclude
regular expression pattern.
-q, --quiet Only output error messages, not regular status
messages
--show-plugins Show available plugins and exit
--no-color Output plain text without color
-h, --help display help for command