How To Install Svgo On Arch And Fedora?

How To Install Svgo On Arch And Fedora?

svgo

SVG Optimizer: a Node.js-based tool for optimizing Scalable Vector Graphics files.
It applies a series of transformation rules (plugins), which can be toggled individually.

Install svgo

  • Arch Linux pacman -S nodejs-svgo Click to copy
  • Fedora dnf install nodejs-svgo Click to copy

SVG Optimizer: a Node.js-based tool for optimizing Scalable Vector Graphics files. It applies a series of transformation rules (plugins), which can be toggled individually.

How to use svgo?

Below are few example commands for svgo that you can use in the terminal.

Optimize a file using the default plugins (overwrites the original file):
svgo test.svgClick to copy
Optimize a file and save the result to another file:
svgo test.svg test.min.svgClick to copy
Optimize all SVG files within a folder (overwrites the original files):
svgo -f path/to/folder/with/svg/filesClick to copy
Optimize all SVG files within a folder and save the resulting files to another folder:
svgo -f path/to/input/folder -o path/to/output/folderClick to copy
Optimize SVG content passed from another command, and save the result to a file:
cat test.svg | svgo -i - -o test.min.svgClick to copy
Optimize a file and print out the result:
svgo test.svg -o -Click to copy
Optimize a file making sure a given plugin is enabled:
svgo --enable=plugin_nameClick to copy
Show available plugins:
svgo --show-pluginsClick to copy
To install the latest version of svgo in your favorite operating system just copy the svgo installation command from above and paste it into terminal. It will download and install the latest version of svgo 2026 package in your OS.