# di

> Dependency Injection for Node.js. Heavily inspired by AngularJS.

Latest version **0.0.1** (published 2013-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install di
pnpm add di
yarn add di
bun add di
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-04-03 |
| First published | 2013-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/di) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 264 |
| Author | Vojta Jina |
| Maintainers | vojtajina |
| Keywords | di, dependency, injection, injector |

## Links

- npm: https://www.npmjs.com/package/di
- Repository: https://github.com/vojtajina/node-di
- npm.io page: https://npm.io/package/di

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2013-04-03
- 2.0.0-pre-14 (v2) — 2015-02-04
- 2.0.0-pre-13 — 2015-02-04
- 2.0.0-pre-12 — 2014-08-24
- 2.0.0-pre-11 — 2014-08-23
- 2.0.0-pre-10 — 2014-04-08
- 2.0.0-pre-9 — 2014-04-08
- 2.0.0-pre-8 — 2014-04-07
- 2.0.0-pre-7 — 2014-04-03
- 2.0.0-pre-6 — 2014-03-28
- 2.0.0-pre-5 — 2014-03-19
- 2.0.0-pre-4 — 2014-03-19
- 2.0.0-pre-3 — 2014-03-10
- 2.0.0-pre-2 — 2014-02-20
- 2.0.0-pre-1 — 2014-02-06
- … 2 more at https://npm.io/package/di/versions

## README

# Dependency Injection for Node.js

Heavily influenced by [AngularJS] and its implementation of dependency injection.
Inspired by [Guice] and [Pico Container].

[AngularJS]: http://angularjs.org/
[Pico Container]: http://picocontainer.codehaus.org/
[Guice]: http://code.google.com/p/google-guice/

<!--
Differences compare to Angular:
- service -> type
- no config/runtime phase
- no providers (configuration happens by registering config)
- no $provide
- no global module register
- no array annotations (but annotate helper)
- no decorators
- no child injectors (yet)
- comment annotation (TBD)
- node module injection (TBD)
-->

---
_Source: https://npm.io/package/di · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
