scriptex/svgo-viewbox

[Feat]Deal with single file

RayJason opened this issue ยท 8 comments

Sometimes, I just need to deal with a file instead of a folder.

Hey, thanks for the feature request. I have implemented and published it. Please install the latest version 2.2.0 which has this new feature.

@scriptex I have upgraded to 2.2.0, but still report an error:

Error: ENOTDIR: not a directory, scandir './icon.svg'

@RayJason can you please show me how you use the module?
What happens if you try to use it via npx?
Like npx svgo-viewbox --i "PATH_TOYOUR_SVG_FILE"

@scriptex Here:
image

Okay, I need to investigate this. Unfortunately, I can do this as early as Tuesday.

Okay, I need to investigate this. Unfortunately, I can do this as early as Tuesday.

Have a good weekend

hey, @RayJason, I've published 2.2.1 and tested it - it works for me. Can you please check if it does the job for you as well?

hey, @RayJason, I've published 2.2.1 and tested it - it works for me. Can you please check if it does the job for you as well?

It's working!๐ŸŽ‰