svg-icon-review v2.1.0
CLI Command
The tool can be executed with this command:
bunx svg-icon-review file1.svg file2.svgIt also supports glob file patterns to check multiple files matching the pattern like this:
bunx svg-icon-review ./images/**/*.svgThe output is a preview of how the icons look in either dark or light backgrounds:
Options
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:
bunx svg-icon-review --bigIcon file1.svg file2.svgThe preview will look like this:
If further help is needed, the --help option can be used:
bunx svg-icon-review --helpInstead of "bunx" you can use "npx" if you prefer Node.js.
Development
For the development of this tool, Bun.js is used. First you have to install the dependencies:
bun installThen you can run the tool with:
bun run startIt is going to create a preview image of the logo.svg file in the root directory.
Formatting and Linting
To format the code, run:
bun run formatTo lint the code, run:
bun run lint1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago