Is there any package in the npm package that violates the dependency inversion principle

dependency inversion principle: it is believed that a method should follow the concept of "relying on abstraction rather than an instance" [5].
dependency injection is one way to implement this principle.
are there any packages that export both instances?

Mar.28,2021

the programming style of nodejs has nothing to do with OOP, so don't copy the OOP style.

npm general export types are:

  1. constructor
  2. ordinary functions
  3. instance
  4. variable
Menu