Manipulating URL's

Is there a PureScript library out there that can help me with URL manipulation?
I need to join an absolute URL with a relative URL and set username and password on the URL. Maybe someone made a PureScript library with an FFI to Web URL API? [1,2]

[1] https://developer.mozilla.org/en-US/docs/Web/API/URL
[2] https://developer.mozilla.org/en-US/docs/Web/API/URL/URL

I think purescript-uri is probably what you’re looking for: https://pursuit.purescript.org/packages/purescript-uri/7.0.0

1 Like

Aah, of course… I was looking for “URL” on Pursuit :slight_smile:
Thanks!

EDIT: It seems the library can’t join a relative URL to a base URL, so I’ve started implementing an FFI to the Web URL API mentioned above: https://github.com/mjepronk/purescript-web-url

1 Like