How to optimize SVG files using SVGO

npm install --global svgo
svgo -f /inputDirectory -o /outputDirectory