This project compresses SVG files in bulk using SVGO. It reads SVG files from the svg_input
directory, optimizes them, and saves the compressed versions to the svg_output
directory. The total saved size is displayed after the process completes.
To install dependencies, run:
bun install
To compress the SVG files, run:
bun run index.ts
svg_input/
- Directory containing SVG files to be compressedsvg_output/
- Directory where compressed SVG files will be saved