# robust-ioc

> IOC

Latest version **1.1.1** (published 2017-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install robust-ioc
pnpm add robust-ioc
yarn add robust-ioc
bun add robust-ioc
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2017-02-22 |
| First published | 2015-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | m0ser |
| Maintainers | webinverters |

## Links

- npm: https://www.npmjs.com/package/robust-ioc
- Repository: https://github.com/webinverters/robust-ioc
- Issues: https://github.com/webinverters/robust-ioc/issues
- npm.io page: https://npm.io/package/robust-ioc

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) 4.x
- [bluebird](https://npm.io/package/bluebird.md) 3.x
- [robust-log](https://npm.io/package/robust-log.md) 1.x

## Recent versions

- 1.1.1 (latest) — 2017-02-22
- 1.1.0 — 2017-02-22
- 1.0.16 — 2016-12-12
- 1.0.15 — 2016-12-12
- 1.0.12 — 2016-12-04
- 1.0.11 — 2016-12-04
- 1.0.10 — 2016-08-10
- 0.0.8 — 2016-08-09
- 1.0.9 — 2016-02-28
- 1.0.8 — 2016-02-28
- 1.0.7 — 2016-02-28
- 1.0.6 — 2016-02-28
- 1.0.5 — 2016-02-27
- 1.0.4 — 2016-02-27
- 0.0.7 — 2016-01-12
- … 5 more at https://npm.io/package/robust-ioc/versions

## README

<!--
@Author: Robustly.io <m0ser>
@Date:   2016-02-27T23:29:51-05:00
@Email:  m0ser@robustly.io
@Last modified by:   m0ser
@Last modified time: 2016-02-27T23:30:28-05:00
@License: Apache-2.0
-->



## 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'})
+

---
_Source: https://npm.io/package/robust-ioc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
