Saturday 24 August 2019

Simple package.json style IOC container for Node

I created an IOC container designed with simplicity and familiarity to package.json in mind. This was created to be the simplest possible way of mapping modules to their respective dependencies. Feedback on what people think of the dependency declaration-style as well as design decisions (such as auto-instantiation instead of the common factory-pattern), as well possible contenders that do the same (thus rendering it redundant) would be much appreciated. If anybody would like to comment on the technical implementation that would also be great (such as the subscriber-based dependency resolution). I think the performance could probably be increased by the use of certain log-n tree structures (instead of iterating as much as is currently done), or possibly priority queue for faster leaf-finding.

Submitted August 24, 2019 at 11:57PM by booleantoggle

No comments:

Post a Comment