# asyncdi

> Async Dependency Injection Library

Latest version **1.1.0** (published 2015-03-23) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-03-23 |
| First published | 2015-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Jed Watson |
| Maintainers | jedwatson |
| Keywords | async, di, dependency, injection, function, library |

## Links

- npm: https://www.npmjs.com/package/asyncdi
- Repository: https://github.com/JedWatson/asyncdi
- Issues: https://github.com/JedWatson/asyncdi/issues
- npm.io page: https://npm.io/package/asyncdi

## Dependencies (2)

- [async](https://npm.io/package/async.md) ^0.9.0
- [lodash](https://npm.io/package/lodash.md) ^3.5.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.1.0 (latest) — 2015-03-23
- 1.0.1 — 2015-03-16
- 1.0.0 — 2015-03-08

## README

# Async-aware Dependency Injection

`asyncdi` checks whether a function is meant to be called asynchronously by
detecting the name of its last argument.

It then provides a consistent calling interface as well as introspection info
about the expected arguments.

## Installation

```js
npm install asyncdi
```

## Usage

See [the tests](https://github.com/JedWatson/asyncdi/blob/master/tests.js)
for example usage.

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