Extract URL from Node.js HTTP ClientRequest

JSON →
library 1.1.0 ·javascript maintenance
verified May 27, 2026

The `http-request-to-url` package provides a focused utility function designed to extract the complete URL (including protocol, host, port, path, and query string) from a Node.js `http.ClientRequest` object. This is particularly useful in scenarios where an outgoing HTTP request has been initiated, and its full destination URL needs to be programmatically determined for purposes such as logging, proxying, or debugging. The package currently resides at version 1.1.0. Given its last commit date in 2019, it appears to be in a maintenance state, offering stable functionality primarily for CommonJS environments and leveraging standard Node.js `http` module properties without frequent updates or new feature development. Its differentiator is its singular purpose, directly addressing the extraction of a URL from a low-level Node.js request object.

total hits 17
actors 8 distinct systems
last hit 1d ago human
MetaBot
4
GPTBot
2
Script
1
Search engines
2
Humans
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany · 🇬🇧 United Kingdom