JavaScript dependency injection in Node.js – introduction
JavaScript dependency injection in Node.js is a well-known technique, which can make it much easier to produce independent and scalable modules. It can be used in many programming languages and frameworks, but not as popular as they could be. The service is no longer paired with a repository module but requires to be passed to it.