Dealing with URLs CLJC in 2020

I need to deal with URLs as not only a string but a special type, becausse in Crux my URLs are my ids for various documents. I need a cljc version since I’m working full stack. The only result I see when searching is cemerick/url. I am not quick to say that old things are bad, but they do tend to get outmoded in web technologies. So, is cemerick/url stil the best thing to use for cljc in URL when it hasn’t been updated in 7 years?

1 Like

Have you considered https://github.com/lambdaisland/uri?

5 Likes

Ah! That might just be what I was looking for. Now I just need to investigate any compatibility problems between java.net.URL and URI

Yep this one was one of the main reason I wrote lambdaisland/uri. Code is just Clojure with a tiny bit of reader conditionals. No java.net.URI or anything like it under the hood.

3 Likes

“This is an up-to-date fork of cemerick/url. It’s intended to be a drop-in replacement.” https://github.com/miikka/url/

1 Like