# aurelia-dependency-injection

> A lightweight, extensible dependency injection container for JavaScript.

Latest version **1.6.1** (published 2024-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install aurelia-dependency-injection
pnpm add aurelia-dependency-injection
yarn add aurelia-dependency-injection
bun add aurelia-dependency-injection
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.6.1 |
| Published | 2024-08-27 |
| First published | 2015-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 159 |
| Author | Rob Eisenberg |
| Maintainers | aureliaeffect |
| Keywords | aurelia, di, dependency injection, ioc |

## Links

- npm: https://www.npmjs.com/package/aurelia-dependency-injection
- Repository: https://github.com/aurelia/dependency-injection
- Homepage: http://aurelia.io
- Issues: https://github.com/aurelia/dependency-injection/issues
- npm.io page: https://npm.io/package/aurelia-dependency-injection

## Dependencies (2)

- [aurelia-pal](https://npm.io/package/aurelia-pal.md) ^1.0.0
- [aurelia-metadata](https://npm.io/package/aurelia-metadata.md) ^1.0.0

## 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

- 1.6.1 (latest) — 2024-08-27
- 1.6.0 — 2024-08-11
- 1.5.2 — 2019-11-20
- 1.5.1 — 2019-09-10
- 1.5.0 — 2019-08-06
- 1.4.2 — 2018-12-18
- 1.4.1 — 2018-06-18
- 1.4.0 — 2018-06-18
- 1.3.2 — 2017-08-22
- 1.3.1 — 2017-04-05
- 1.3.0 — 2017-01-12
- 1.2.1 — 2016-12-13
- 1.2.0 — 2016-10-14
- 1.1.0 — 2016-10-05
- 1.0.0 — 2016-07-27
- … 18 more at https://npm.io/package/aurelia-dependency-injection/versions

## README

<p>
  <a href="https://aurelia.io/" target="_blank">
    <img alt="Aurelia" src="https://aurelia.io/styles/images/aurelia.svg">
  </a>
</p>

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![npm Version](https://img.shields.io/npm/v/aurelia-dependency-injection.svg)](https://www.npmjs.com/package/aurelia-dependency-injection)
![ci](https://github.com/aurelia/dependency-injection/actions/workflows/main.yml/badge.svg)
[![Discourse status](https://img.shields.io/discourse/https/meta.discourse.org/status.svg)](https://discourse.aurelia.io)
[![Twitter](https://img.shields.io/twitter/follow/aureliaeffect.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=aureliaeffect)
[![Discord Chat](https://img.shields.io/discord/448698263508615178.svg)](https://discord.gg/RBtyM6u)

# aurelia-dependency-injection

This library is part of the [Aurelia](http://www.aurelia.io/) platform and contains a lightweight, extensible dependency injection container for JavaScript.

## Documentation

You can read documentation on dependency injection [here](https://aurelia.io/docs/fundamentals/dependency-injection/). If you would like to help improve this documentation, the source for the above can be found in the doc folder within this repository.

## Platform Support

This library can be used in the **browser** as well as on the **server**.

## Reporting Issues

Please refer to the [issue template](ISSUE_TEMPLATE.md). Accompany any bug report with a demo of the issue using a [runnable Gist](https://gist.run/?id=381fdb1a4b0865a4c25026187db865ce).

## Building

```shell
npm run build
```

## Tests

```shell
npm run test
```

## Developing

Run the tests in watch mode:

```shell
npm run develop
```

## Publishing

1. Bump the version
  
  ```shell
  npm run bump-version [<newversion> | major | minor | patch]
  ```

2. Prepare the release (run tests, run build, docs, release notes)
  
  ```shell
  npm run prepare-release
  ```

3. Commit, tag, npm publish (not automated)

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