JSPM

asyncdi

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 636
  • Score
    100M100P100Q96696F
  • License MIT

Async Dependency Injection Library

Package Exports

  • asyncdi

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (asyncdi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

npm install asyncdi

Usage

See the tests for example usage.