This package has been deprecated

Author message:

No longer used.

@sugarcoated/fondant-provider

1.0.3 • Public • Published

Provider extends Module to resemble a factory and produce enviromentally dependant singletons.

API Reference

new Provider(reference, limit)

Creates a new Provider instance.

  • reference is expected as a Provider, like a self-reference.

  • limit is expected as a Number, representing the instancing roof.

    class myProvider extends Provider {
      constructor (a, b, c) {
        super (myProvider);
      }
    }
    

Upon construction, you will have access to the following properties:

  • limit is the instancing roof.
  • factored is a Dictionary of instances.

.factor()

Factors a new instance.

  • Does not accept any arguments.

Readme

Keywords

Package Sidebar

Install

npm i @sugarcoated/fondant-provider

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • crowes