simple 'find' implementation and some more useful options
npm i @shimataro/node-simplefind
optimize multiple SVG files using svgo
package.json
:
{
"scripts": {
"build": "node-simplefind src -name '*.svg' -exec svgo -i {} -o dist/{r=src} \\;"
}
}