node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


Simple controller dispatcher

Auto loads all modules from a particular directory, using directory, and allows you to try to invoke the method.

There are some upcoming features, such as before actions etc.

(You can probably also use it on the client side with something like browserify)


npm install ctrlr

Example usage:

var controllers = ctrlr(__dirname + '/controllers/');
controllers("cars#drive")('Filmore and Geary', 'Grant Ave and O\'farrel');

License: MIT