JedWatson / asyncdi

Async Dependency Injection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

npm install asyncdi

Usage

See the tests for example usage.

About

Async Dependency Injection

License:MIT License


Languages

Language:JavaScript 100.0%