1.0.2 • Published 7 months ago

@stone-js/service-container v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

StoneJS: Service Container

npm npm npm Maintenance

IoC Service Container with proposal decorator, proxy resolver and destructuring injection provides a very simple, centralized container that stores and resolves libraries, objects, and values to better organize code, manage dependencies, and enhance testability.

Benefits:

  • Proposal decorator, allow you to decorate any class as a Service that must auto bind to the service container
  • Proxy resolver, Allow you to resolve any class denpendencies as own property of the container instance
  • Destructuring injection or Destructuring resolver, allow you to use dependencies in your class constructor using destructured parameter
  • Autobinding, allow to bind any class with zero configuration
  • Defers dependency resolution to mitigate circular references

Table of Contents

Installation

The Service Container can be installed with both npm and yarn.

# Install with NPM
$ npm i @stone-js/service-container

# Install with yarn
$ yarn add @stone-js/service-container

Credits

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago