{"repo":"svg/svgo","free":true,"listed":false,"github":"https://github.com/svg/svgo","clone":"git clone https://github.com/svg/svgo.git","description":"SVG Optimizer for Node.js and CLI. ⚙️","language":"JavaScript","stars":22636,"topics":["svg","minification","nodejs","svgo","javascript","optimization","cli","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"SVGO SVGO, short for SVG Optimizer, is a Node.js library and command-line application for optimizing SVG files. Why? SVG files, especially those exported from vector editors, usually contain a lot of redundant information. This includes editor metadata, comments, hidden elements, default or suboptimal values, and other stuff that can be safely removed or converted without impacting rendering. Installation You can install SVGO globally through npm, yarn, or pnpm. Alternatively, drop the global flag ( global / -g ) to use it in your Node.js project. Command-line usage Process single files: Process a directory of files recursively with -r / --recursive and -f / --folder : Help for advanced usage: Configuration SVGO has a plugin architecture. You can read more about all plugins in Plugins SVGO Documentation, and the default plugins in Preset Default SVGO Documentation. SVGO reads the configuration from svgo.config.mjs or the --config path/to/config.mjs command-line option. Some other parameters can be configured though command-line options too. svgo.config.mjs Default preset Instead of configuring SVGO from scratch, you can tweak the default preset to suit your needs by configuring or disabling the respective plugin. svgo.config.mjs You can find a list of the default plugins in the order they run in Preset Default SVGO Documentation. Custom plugins You can also specify custom plugins: svgo.config.mjs API usage SVGO provides a few low level utilities. optimize The core of SVGO is ","default_branch":null,"files":null,"tree":[],"storefront":"/r/svg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/svg/svgo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}