Open
Description
utils that helps you work with url patterns: /articles/:id
Basically a subset of https://www.npmjs.com/package/url-pattern we can add new methods as needed.
pattern('/articles/:id').match('/articles/123') => {id: '123'}
pattern('/articles/:id').match('/other-url/123') => null
If this is wanted in the library, let me know and I will create a PR.