0.0.0 • Published 10 months ago

@hiogawa/tiny-di v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

tiny-di

Extremely simple dependency injection library. See ./src/index.test.ts for the basic usage.

The idea is similar to tsyringe's constructor injection but this library has following benefits:

  • extreme simplicity (~ 100 LOC)
  • it doesn't rely on typescript decorator metadata and thus doesn't require special setup for vite/esbuild based proejcts.
  • it provides a dependency graph to implement, for example, own per-module setup/teardown hooks very easily.

ideas

0.0.0

10 months ago