The more I delve in to the world of Javascript the more I come across projects such as:<p>* is-root: https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;is-root<p>* is-even https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;is-even<p>Often these are whole npm modules that comprise of a single line of code.<p>I&#x27;ve never seen anything quite like it when working with Java and Python.<p>Can anyone explain why? It seems to me adding a dependency I have to suck across the network, that may introduce breaking changes (or just disappear) is something that shouldn&#x27;t be taken lightly. Doing it for a single line of code (that realistically won&#x27;t need to change anyway) is borderline insane.<p>Am I being too paranoid or am I missing something?
Ask HN: Why do JavaScript developers favour many, tiny dependencies?