[Feat]Deal with single file
RayJason opened this issue ยท 8 comments
RayJason commented
Sometimes, I just need to deal with a file instead of a folder.
scriptex commented
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.
RayJason commented
@scriptex I have upgraded to 2.2.0, but still report an error:
Error: ENOTDIR: not a directory, scandir './icon.svg'
scriptex commented
@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 commented
Okay, I need to investigate this. Unfortunately, I can do this as early as Tuesday.
RayJason commented
Okay, I need to investigate this. Unfortunately, I can do this as early as Tuesday.
Have a good weekend