limo.js
Dependency injection with licy.js modules.
Install on Node
npm install limo
What's it doing?
Limo require
s plugins and registers them on licy.js, a dependency and lifecycle management tool. You can then use licy
to start, stop and destroy the plugins.
Usage
The limo
module exposes a single function. Pass either a config:
var limo = ;
or a path to a JSON file with the config:
var limo = ; ;
The path must be relative to the cwd.
A config contains key value pairs where the key is going to be used as the licy.js plugin name and the value is require
d and used as the plugin.
"router.static" : "./lib/router/static" "router.template" : "./lib/router/template" "server" : "./lib/server"
It's also valid to specify an array of plugins for a single name:
"routers" : "./lib/router/static" "./lib/router/template" "server" : "./lib/server"
The limo
function returns the licy.js module for convenience:
start'**';