Your concern is somewhat ancient history in the node/npm world. NPM >= 3 flattens the dependency hierarchy as much as it thinks possible. (3.0.0 was released to beta in Jun 2015; NPM >= 3 has been bundled with Node LTS since "Boron" in Oct 2016)
Subsequent versions of NPM continue to improve upon this flattening effort.
Subsequent versions of NPM continue to improve upon this flattening effort.