If has maintainers, well it's clear by now from all the security problems which happened in homebrew first that it's nowhere as diligent as apt or rpm.
Also next problem with it, I really don't want to build everything from source, otherwise I would use Gentoo and not MacOS...
Homebrew runs against a curated and tested package repository maintained by a dedicated team of vetted maintainers.
NPM is free-for-all with zero curation. Anyone can upload whatever they want.