pillarjs/path-to-regexp is a small library that takes nice-looking Express-style paths like '/foo/:bar' and turns them into a regex. Our current implementation just takes a raw regex as the path, which is fine, but this looks nicer, is more intuitive, and would allow us to hand over responsibility for this to a library dedicated to it.
As a part of this we'd have to add Browserify to our build process so that we can require() the path-to-regexp module in mini-router and output a browser-ready bundle.
pillarjs/path-to-regexp is a small library that takes nice-looking Express-style paths like
'/foo/:bar'
and turns them into a regex. Our current implementation just takes a raw regex as the path, which is fine, but this looks nicer, is more intuitive, and would allow us to hand over responsibility for this to a library dedicated to it.As a part of this we'd have to add Browserify to our build process so that we can
require()
the path-to-regexp module in mini-router and output a browser-ready bundle.