0.4.0 • Published 7 years ago

maf-service-locator v0.4.0

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

maf-service-locator

clean simple service locator

bitHound Overall Score bitHound Dependencies Build Status Coverage Status

NPM

install

npm i maf-service-locator

can be used in node.js and in browsers

usage

var ServiceLocator = require('maf-service-locator');

var api = new ServiceLocator();

api.set('tasks', function () {
    var TaskService = require('./TaskService');
    return new TaskService();
});

var task = api.get('tasks').getOneById(1);

API

see docs/api.md

LICENSE

MIT

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago