Easier use of Director.js with Browserify, plus some added features.
Directify is a client-side router, actually it's pretty much Director.js (included) with some additional features/tweaks.
npm install directify
var router = require'directify';// Usage: router(routingTable, targetElement);var routingTable =return thistargetinnerHTML = 'This is the root url.';return thistargetinnerHTML = "This is another path, it is: " + thispath;'/parent':return thistargetinnerHTML = "This path takes json params, they are: " + JSONstringifythisparams;;$documentreadyvar targetElement = documentgetElementById'main';routerroutingTable targetElement;;