servicelocator

Central location to register and locate services within a Node.js application.

servicelocator

A central location to register and locate services within a Node.js application. This module implements the service locator pattern, as detailed by Martin Fowler.

$ npm install servicelocator
var locator = require('servicelocator');
 
locator.register('db', dbConnection);
var locator = require('servicelocator');
 
var dbConnection = locator.get('db');
$ npm install
$ npm test

The MIT License

Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>