di-craft
v0.0.34
Published
A tiny, type-safe dependency injection container for TypeScript with optional Next.js App Router and Node.js adapters
Maintainers
Keywords
Readme
npm install di-craftimport { createContainer, createToken, provideValue } from "di-craft";
const PORT = createToken<number>("PORT");
const container = createContainer([provideValue(PORT, 3000)]);
container.get(PORT); // numberRead the documentation or browse the generated API reference.
