Show HN: Dependency injection container library for JavaScript/TypeScript (github.com) 2 points by joaoneto 2y ago ↗ HN
[–] evnix 2y ago ↗ 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.
2 comments
[ 3.3 ms ] story [ 18.6 ms ] threadexport 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.