(C) Alec Muffett's DropSafe blog.
Author Name: Alec Muffett
This story was originally published on allecmuffett.com. [1]
License: CC-BY-SA 3.0.[2]


trurl: command line tool for URL parsing and manipulation

2024-01-31 16:00:00+00:00

One software thing I built at Facebook was called Host — basically a PHP library to manipulate website hostnames without error-prone regular expressions, bad assumptions and “hunting for dots”. It saved a lot of potential problems and a moderate amount of CPU (0.1%+?) and I can see the same thinking here.

If you’re manipulating URLs, you should try this:

https://github.com/curl/trurl
[END]

[1] URL: https://alecmuffett.com/article/108924
[2] URL: https://creativecommons.org/licenses/by-sa/3.0/

DropSafe Blog via Magical.Fish Gopher News Feeds:
gopher://magical.fish/1/feeds/news/alecmuffett/