Hi @flaviotulino
I went through your solution and tried . Unfortuanately the npm APIs are now deprecated as per the official message -
throw new Error('The programmatic API was removed in npm v8.0.0') ^
Error: The programmatic API was removed in npm v8.0.0
Therefore in order to help the visitors here. I would suggest adding a help text so that it could be easily conveyed and audience can be limited.
Thanks!