Modern Dependency Injection library for TypeScript using the new [TC39 Decorators](https://github.com/tc39/proposal-decorators).
npm install @sentium/injectableModern Dependency Injection library for TypeScript using the new
TC39 Decorators.
- Ultrafast & Lightweight
- Multi-runtime
- Works on Node.js, Deno, Bun or Cloudflare.
- Sync or Async
- Inject classes that are resolved asynchronously.
- Type-safety
- Injection scopes
``bash
# npm
npm install @sentium/injectable
# yarn
yarn add @sentium/injectable
# pnpm
pnpm add @sentium/injectable
# bun
bun add @sentium/injectable
`
`typescript`
import { ... } from "https://deno.land/x/sentium/injectable/mod.ts";
`typescript
import { injectable, resolve } from "@sentium/injectable";
@injectable()
class MyClass {
...
}
const myInstance = resolve(MyClass);
``
_TODO_