News for hackers. Stuff that matters.
Re:Why and how to use service injection in Node.js by williamdclt on Sunday October 31, 2021 @01:15PM (#29058511)
Indeed. NestJS is one such framework that uses DI, it uses type reflection to inject implementations, or you can optionally use a DI token (with `@Inject(token)`).

While I've never been a huge fan of this, it's also usually the least of my problems. On the plus side it makes dependencies between modules explicit which has raised some flags occasionally.

There are no comments on this comment yet.