Closed iyh closed 2 years ago
Hi, thanks for the issue.
Unfortunately the package was made with fixing many svgs at once in mind not just one with a different output name.
Is there a really good use case for this instead of just renaming it after it was fixed?, or is this just a quality of life change that you need?
so maybe check if destination has ext? path.parse(destination).ext before check exists /src/location.js#L19
Unfortunately its a simple problem that requires alot of changes from what I can see since the package is always expecting a directory for the destination
.
If you have a fix for this in mind a PR would be greatly appreciated.
I get your point, your using case is more effective , convert all svgs even those ones is OK in icomoon. (for eg. only some of svgs in one icon pack are Strokes)
If user want change the output filename, for eg.
oslllo-svg-fixer -s \!.svg -d fixed/exclamationmark.svg
will produce error:so maybe check if destination has ext?
path.parse(destination).ext
before check exists /src/location.js#L19