logoalt Hacker News

gavmor • today at 4:54 AM • 1 reply • view on HN

The purpose of node_modules is to reduce the surface of ancillary code which one must maintain.

This allows the maintainer to focus on business logic, delegating universal, undifferentiating concerns to projects that respect those concerns as their own raison d'etre.

Thus is all running software respected as central, and not peripheral, during its development. This raises the quality of the code—increasing functionality, and reducing defects.


Replies

krelas • today at 5:21 AM

Oh I thought it was to increase the chance of supply chain attacks and being caught in dependency hell.