The Node.js Ecosystem Is Chaotic and Insecure
Comparing is-odd with left-pad is a bit disingenuous.<p>Left-pad had a fairly trivial implementation but that implementation is easy to get wrong, so it&#x27;s something you want to make sure you have covered by tests and you want to define the edge cases. It&#x27;s something that should be (and as of ES2017 is) part of the language and not something you want to keep reinventing (alongside all the edge cases and potential for annoying bugs).<p>The is-odd and is-even packages OTOH are blatantly ridiculous. I had a look in my dependency tree and it seems is-odd made its way into it via a package called &quot;nanomatch&quot; which used is-odd because the maintainer apparently was of the opinion that (to paraphrase) &quot;if it&#x27;s difficult enough to get wrong on the first attempt it&#x27;s difficult enough to warrant delegating to a dependency&quot; -- which he seems to have taken to the logical extreme.<p>That said, the package in question removed the dependency on is-odd after what seems to have been a lot of negativity about his decision not to inline the logic previously: <a href="https:&#x2F;&#x2F;github.com&#x2F;micromatch&#x2F;nanomatch&#x2F;pull&#x2F;11" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;micromatch&#x2F;nanomatch&#x2F;pull&#x2F;11</a> so once that change propagates through the dependency tree, it should at least no longer show up for some people.