https://github.com/monodyle/mksvg
Powerful and flexible command-line tool designed to streamline the creation of SVG sprites.
https://github.com/monodyle/mksvg
Last synced: 7 months ago
JSON representation
Powerful and flexible command-line tool designed to streamline the creation of SVG sprites.
- Host: GitHub
- URL: https://github.com/monodyle/mksvg
- Owner: monodyle
- Created: 2024-06-18T16:41:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-18T17:51:05.000Z (over 1 year ago)
- Last Synced: 2024-06-19T23:10:14.604Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## mksvg
Powerful and flexible command-line tool designed to streamline the creation of SVG sprites.
## Usage
```bash
$ mksvg --help
Usage: mksvg [options]
Powerful and flexible command-line tool designed to streamline the creation of SVG sprites
Options:
-V, --version Displays the current version
-T, --typescript [output_file] Specifies the path to generate TypeScript definitions. If an output path is provided, the TypeScript files
will be created at that location.
--ignore-invalid Ignores and skips over any invalid SVG files encountered during processing. This option ensures that the
process continues without interruption despite potential input errors.
--keep-icon-color Preserves the original color attributes of the SVG icons during the sprite generation process. This option
ensures that each icon retains its designated colors as specified in the original files, making it ideal for
projects where maintaining specific color schemes is crucial.
-h, --help Provides a detailed description of all commands and options available
```
Example:
```bash
mksvg ./icons sprite.svg -T
```