🌟 onivue-bulk-compress-svg

🚀 How It Works

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.

📦 Installation

To install dependencies, run:

bun install

▶️ Usage

To compress the SVG files, run:

bun run index.ts

🛠️ Built With

  • Bun - A fast all-in-one JavaScript runtime
  • SVGO - SVG optimizer
  • Chalk - Terminal string styling

📁 Project Structure

  • svg_input/ - Directory containing SVG files to be compressed
  • svg_output/ - Directory where compressed SVG files will be saved