Skip to content

💉 Dependency Injection for Node.js with no dependencies, just ~50 lines.

License

Notifications You must be signed in to change notification settings

lsongdev/injector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inject2

Dependency Injection for Node.js

inject2 Build Status

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.


About

💉 Dependency Injection for Node.js with no dependencies, just ~50 lines.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published