1.1.1 • Published 6 years ago

@travi/ioc v1.1.1

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

ioc

extremely simple container that loosely aligns to IOC

npm license Build Status

Commitizen friendly semantic-release Greenkeeper badge

Installation

$ npm install @travi/ioc -S

Usage

Making an instance available through the container

import {register} from '@travi/ioc';

const instance = factory();

add('instance-name', instance);

Getting an instance from the container

import {use} from '@travi/ioc';

const instance = use('instance-name');
1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago