Skip to content

Glossary: Software Design Patterns in JavaScript

DI container

Also written: dependency injection container

A library that builds objects and their dependencies automatically from a list of rules. JavaScript programs rarely need one because plain calls in a composition root stay readable.

Where the book teaches it

Related terms

Composition rootService locator