logoalt Hacker News

ang_cire • today at 4:11 PM • 1 reply • view on HN

Yeah, all these devs pretending you can only trust code you understand, then going and pulling in 1000 random npm deps...


Replies

batshit_beaver • today at 4:30 PM

When people install npm packages, they typically only install ones the community trusts. These packages have clear APIs, open source, good docs, test coverage, security checks, and, importantly, usually no undocumented side effects.

Engineers introduce these packages into their own projects that have far fewer of the above guarantees than OSS, are built under pressure from deadlines, and have a constantly churning set of maintainers.

I think from the perspective of a business its own code does call for greater scrutiny than its dependencies.

➕ show 1 reply