A multi-purpose Router


  • Fast, very fast!!
  • Multipurpose
    • Environment agnostic - isomorphic implementation
    • Purpose agnostic (i.e. not just for URLs routing)
  • Automatic route parameters retrieval and type coercion

Using NPM with: npm install git://

Using bower.js: bower install git://

var conduttore = require('conduttore')
function handler (controlleractiontype)
var router = conduttore({
    aliases: {
        ':controller': ':text',
        ':action': ':text'
    params: {
        ':type': ['topolino', 'pluto']
    routes: [
        { '/:controller/:action/:type': handler},
        { '*': defaultHandler }
// retrieve the route value (a function in this case) 
// or invoke the route handler 
    .then(function (handlerResult) {
        // your post processing logic goes here 

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

(Nothing yet)

Copyright (c) 2014 Cesare Naldi
Licensed under the MIT license.