0.0.1 • Published 6 years ago

inject2 v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

inject2 inject2

Dependency Injection for Node.js

Installation

$ npm install inject2

Example

const Injector = require('inject2');

const invoke = Injector({
  a:1,
  b:2,
  c: (a,b) => a+b
});

invoke(c => c).then(console.log); // 3

Contributing

  • 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

MIT

This work is licensed under the MIT license.