News for hackers. Stuff that matters.
Re:Show HN: Dependency injection container library for JavaS... by evnix on Saturday March 30, 2024 @05:37AM (#39873276)
Just curious, why would you do this instead of,

export const someDep = new Dependency();

You can export a lot more of these statements.

and use it everywhere as these act as singletons in lets say a node JS environment.