asyncdi

1.1.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    559
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    559
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i asyncdi

Weekly Downloads

481

Version

1.1.0

License

MIT

Last publish

Collaborators

  • jedwatson