Get values by glob-like keys
npm install globject --save
var globject = require('globject');
var routes = {
'**/about/**': 'about.html',
'**': 'index.html'
};
var routesObj = globject(routes);
console.log(routesObj('/about/somepage.html')); // OUTPUTS: about.html
console.log(routesObj('/any/route.html'')); // OUTPUTS: index.html
npm install
npm test