infect.js - Infectiously simple dependency injection for any JavaScript project

When working on a large codebase there are often services, utility methods, endpoints, etc that are shared across the whole application. When a reference to one of these is needed within a module, we will often alias the global namespace to a variable to easy referencing. Dependency injection makes this easier and more maintainable.

infect.js brings the magic of DI to any JavaScript application in the form of a tiny (sub 1kb min+gz) library that can be included in your code.

Check out the github page for more details and code examples

Comments powered by Disqus
2 notes
  1. amwmedia posted this