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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d12e-2c379.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d12e-2c379.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?