The tool can be executed with this command:
npx svg-icon-review file1.svg file2.svg
It also supports glob file patterns to check multiple files matching the pattern like this:
npx svg-icon-review ./images/**/*.svg
The output is a preview of how the icons look in either dark or light backgrounds:
Optionally, an additional bigger icon (in size of 32x32px) will be shown in front of the preview. This is useful to see the icon in more detail. This can be done by adding the --bigIcon
option like this:
npx svg-icon-review --bigIcon file1.svg file2.svg
The preview will look like this:
If further help is needed, the --help
option can be used:
npx svg-icon-review --help