inverter-ioc
Just a fast, tiny and useful IoC container made in Javascript
Installation
$ npm install inverter-ioc
Quick Start
// Importing the module.let inverter = import'inverter-ioc'; // Registering the current instance for future use.inverter; // Calling a previously created instance.let resolvedInstance = inverter;
Real World Example
// Registering Constantsinverter; // Registering the circle class, using a previously registred functioninverter; // Resolving the cicle instancevar circle = inverter; // Using the instanceconsole;console;
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm install$ npm test
To analyze the code coverage status, install all dependencies and run npm run coverage
:
$ npm install$ npm run coverage
Features
- Upcoming