```js var nanorouter = require('nanorouter') var router = nanorouter() router.route('default', function (params) { }) router.route('/foo/:bar', function (params) { }) router.match(window.location) ``` Base it on prototypes - and that's it I think :sparkles: