Barebones dependency injection in less than 100 lines of pure JavaScript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Garrett Mills 921f8dbe07 Update post link 4 weeks ago
App.js Big Bang 4 weeks ago
DependencyInjector.js Big Bang 4 weeks ago
Injectable.js Big Bang 4 weeks ago
README.md Update post link 4 weeks ago
Service.js Big Bang 4 weeks ago
ServiceContainer.js Big Bang 4 weeks ago
index.js Big Bang 4 weeks ago

README.md

Basic Dependency Injection

In less than 100 lines of pure, ES6 JavaScript

This is a very bare-bones dependency injector implementation based on the ES6 classes. It’s meant to illustrate the feasibility and benefits of using a service-based dependency injector for Node.js/JavaScript applications.

I discuss this project in greater depth in my blog post here.