0.1.2 • Published 6 years ago

innjector v0.1.2

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

Innjector

Another dependency injection library for JS.

Usage

const Innjector = require('innjector');

async function run() {
  const injector = new Innjector();
  await injector.load(process.cwd());

  const baseModule = injector.container.get('yourApp');
  yourApp.run();
}

In your module, the exported function should follow the convention of dependable functions.
And if you want to override the name of the module, just do module.exports._moduleName = 'myName'.

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago