route-map
Match a url from an object of route patterns.
Republished from @azer.
Install
$ npm install route-map
Usage
routeMap = match = // => {// fn: showUser,// params: { name: 'john' },// qs: { foo: 'bar' }, // querystring// pattern: 'people/:name',// url: 'people/john?foo=bar'// } // => undefined