— You go from: yourModule To: (dependencies) -> yourModule
—
The purpose of dependency injection is in most cases testability, so you really only need to inject dependencies that talk to the outside world (console, network, db, fs)
— It's the case, Is for testability
— I undestand
— That's all you need
— Instead of using require inside the module file, you do it outside the module and pass it in