alecm on Nostr: trurl: command line tool for URL parsing and manipulation One software thing I built ...
trurl: command line tool for URL parsing and manipulation
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/trurlhttps://alecmuffett.com/article/108924#curl #trurl
Published at
2024-01-31 16:00:00Event JSON
{
"id": "4e749d0a2e433646fe46651d55b931785de46b35df76d45351ba3277c7614a87",
"pubkey": "49cbb20eb5092e3e0af65ed26d9d601ed4e7329f3ee8b7cd2958ce1cf9c29147",
"created_at": 1706716800,
"kind": 1,
"tags": [
[
"t",
"curl"
],
[
"t",
"trurl"
],
[
"proxy",
"https://alecmuffett.com/article/108924",
"activitypub"
]
],
"content": "trurl: command line tool for URL parsing and manipulation\n\nOne 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.\n\nIf you’re manipulating URLs, you should try this:\n\nhttps://github.com/curl/trurl\n\nhttps://alecmuffett.com/article/108924\n\n#curl #trurl",
"sig": "5d2ce7e863506125bb639050e475a6fccc6a1f830e60603c5c0b06b2a04efd403d54e7d0dba858386bb78ae36f15951e896881ff04c8effb48288ac2f76f3035"
}