If you can easily write a replacement for it, then the cost of depending on it is very small - because the worst case for the fix is replacing it....
https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
Really and also freeze the version number to what you know will work while you are at it. Unless it is an actual security and/or standardization important component (say SSH) it can wait until you know what it will do and that it won't break anything. It is good for bloat avoidance, security, and reliability.