pathname-router
The route expressions are parsed with https://github.com/pillarjs/path-to-regexp
Usage
const router = routerrouterrouterrouter router// => {name: 'HomePage'} router// => {name: 'AboutPage'} router// => {name: 'PostShowPage', postId: '1234'} router// => {name: 'CatchAllPage', path: 'bad/path'}