URI.js icon indicating copy to clipboard operation
URI.js copied to clipboard

Recommanded URITemplate extraction method?

Open Lcfvs opened this issue 6 years ago • 5 comments

Hi,

I don't see any URITemplate extraction method... did I miss it or is there a recommanded companion to do it, please?

Lcfvs avatar Oct 18 '19 19:10 Lcfvs

I have seen the alternatives in your readme (uri-template & uri-templates) but I prefer to use yours.

Lcfvs avatar Oct 18 '19 19:10 Lcfvs

What exactly do you mean by "URITemplate extraction method"?

rodneyrehm avatar Oct 20 '19 13:10 rodneyrehm

Extract the pairs (key/value) from an URI, based on the template, a few like this: https://github.com/rezigned/uri-template.js#extraction

Lcfvs avatar Oct 20 '19 15:10 Lcfvs

extraction is not covered by RFC6570 and therefore wasn't implemented in URI.js

rodneyrehm avatar Oct 20 '19 16:10 rodneyrehm

It's ok but why not a URI.js "companion" using your template structure? :)

Lcfvs avatar Oct 21 '19 10:10 Lcfvs