alecm,

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/trurl

https://www.addtoany.com/add_to/copy_link?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F108924&linkname=trurl%3A%20command%20line%20tool%20for%20URL%20parsing%20and%20manipulationhttps://www.addtoany.com/add_to/threads?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F108924&linkname=trurl%3A%20command%20line%20tool%20for%20URL%20parsing%20and%20manipulationhttps://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F108924&linkname=trurl%3A%20command%20line%20tool%20for%20URL%20parsing%20and%20manipulationhttps://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F108924&linkname=trurl%3A%20command%20line%20tool%20for%20URL%20parsing%20and%20manipulationhttps://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F108924&linkname=trurl%3A%20command%20line%20tool%20for%20URL%20parsing%20and%20manipulationhttps://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F108924&linkname=trurl%3A%20command%20line%20tool%20for%20URL%20parsing%20and%20manipulationhttps://www.addtoany.com/add_to/mastodon?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F108924&linkname=trurl%3A%20command%20line%20tool%20for%20URL%20parsing%20and%20manipulationhttps://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F108924&linkname=trurl%3A%20command%20line%20tool%20for%20URL%20parsing%20and%20manipulationhttps://www.addtoany.com/share

https://alecmuffett.com/article/108924

#curl #trurl

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • cubers
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • ngwrru68w68
  • GTA5RPClips
  • JUstTest
  • osvaldo12
  • tacticalgear
  • modclub
  • cisconetworking
  • mdbf
  • tester
  • ethstaker
  • Leos
  • normalnudes
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines