light-IOC
Simple Inversion of Control module from my NodeJS Framework.
This library works with any project based on JavaScript, both web and server.
About
We present a class and module version using vanilla javascript and typescript.
Examples
// var IOC = require("light-ioc");// Create IOC and save valuesvar ioc = ;ioc;ioc;ioc;ioc; // Call ioc methodstry // Inject values name from function arguments ioc; // Inject values from all arguments but the last (function) ioc; // Inject values from firt argument (array) ioc; ioc; ; catche console;
TODO
- $get and $set
- $call
- $inject
- $invoke
- Argument simple validations
- Add all
- $singleton
- $provider
- $factory
- Testing
- Documentation
- Case sensitive On/Off (Default: false)