Hacker News new | ask | show | jobs
Show HN: I built a url builder library for JavaScript (github.com)
3 points by ikeohachidi 1389 days ago
A couple of days ago on a Whatsapp group chat with couple of my friends, we were talking about urls, http methods etc when I realized that sometime in the past I had experienced issues building urls so I just created this to satisfy that itch plus it seemed like a cool side project. All suggestions are incredibly welcome
1 comments

I've been using the standard interface[0] to handle URLs, is this better?

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

Hey, yes I believe it does in some ways. Eg with the `setParam`, `setQuery` methods and also with the addition of placeholders to easily change url paths. I'm open to suggestions and criticism if you have any btw.