Hello, Can someone help-me about the Dependency Injection in Nodejs ? What is the best pattern for this ? what is the best module for use ?
Thank you!
— Dependency injection is a pattern
— You don't need modules
— 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)