Dependency Injection for Node.js
$ npm install inject2
const Injector = require('inject2');
const invoke = Injector({
a:1,
b:2,
c: (a,b) => a+b
});
invoke(c => c).then(console.log); // 3
- Fork this Repo first
- Clone your Repo
- Install dependencies by
$ npm install
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3
This work is licensed under the MIT license.