r/javascriptFrameworks • • Jan 23 '21

Introducing my new Dependency Injection Container for TS/JS projects

https://github.com/Livshitz/di.libx.js
I'd really appreciate peer-review.

πŸ’‰ di.libx.js

Lightweight Dependency Injection module that supports async/deferred resolution and uglified support for Typescript and JavaScript in 14.7K. Feature complete, fast, reliable and well tested.

Features:

  • Deferred resolution - asynchronously require dependencies that are not yet available and resolve once it is.

  • Automatic resolve of function params - resolve & map dependencies manually or as function's parameters

  • NodeJS & browser - browserified version ready to use from CDN.

  • Explicit or implicit dependencies - works with uglified files by specified dependencies' names or implicitly from function/class name.

  • Typescript support - specify injected instance's types.

Share your ❀️, put ⭐️in the repo, πŸ™.

1 Upvotes

0 comments sorted by