1.1.1 • Published 7 years ago

robust-ioc v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Synopsis

Update. At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

A short description of the motivation behind the creation and maintenance of the project. This should explain why the project exists.

Installation

Provide code examples and explanations of how to get the project.

Debugging

If you want to debug this module, pass it a logger that conforms to the "A1 Logging Interface Specification" as the second parameter.

API Reference

Initialization

var ioc = require('robust-ioc')({containerName: 'demo'})

Registering Stuff

ioc.singleton('helloMsg', "hello world!")
ioc.register('hostess', function(helloMsg) { return { sayHello: function() { console.log(helloMsg) } } })

Demonstration

var hostess = ioc.get('hostess') // hostess will be injected with helloMsg
hostess.sayHello()

Tests

Describe and show how to run the tests with code examples.

Contributors

Let people know how they can dive into the project, include important links to things like issue trackers, irc, twitter accounts if applicable.

License

A short snippet describing the license (MIT, Apache, etc.)

Features

  • Conditional module registering (to register one svc for one module, and another svc2 for module2) ioc.register('dal', require('dal')) ioc.condition('dal', 'dal2', 'module2') ioc.register('dal2', require('dal2')).condition({module: 'module2', alias: 'dal'})

+

1.1.1

7 years ago

1.1.0

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

8 years ago

0.0.8

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

0.0.7

8 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago