Angular-style Dependency Injection for Node.js & the browser.
Angular-y DI is fun.
So, "inject" some fun into your app.
$ npm install --save pop-it
var pop = ;;;
Register a dependency (internally known as a poppy)
A poppy can be any value.
// Num nums.;// Stringilings.;// Funkadunks.;
Execute a poppy
Assume we registered the above dependencies.
Poppies are executed lazily, so your ordering isn't super important. Watch how we register a popped function to a poppy.
// register "b" with the value of a lazily-executed popped function.;;;
Pop to the It.
Copyright (c) 2014 Stephen Sawchuk. Licensed under the MIT license.