{"library":"original-url","type":"library","category":null,"description":"The `original-url` package provides a utility function to reconstruct the full, original URL of an HTTP request by intelligently parsing various standard and de-facto standard HTTP headers. It accounts for potential modifications made by proxies, load balancers, and other intermediaries by examining headers like `Host`, `Forwarded`, `X-Forwarded-Proto`, `X-Forwarded-Host`, `X-Forwarded-Port`, and others. If the protocol cannot be determined from headers, it leverages the TLS connection's `encrypted` flag. The module returns a URL object compatible with Node.js's native `url.parse` output, including a `full` property for the complete URL string. The current stable version is 1.2.3, published over 6 years ago, indicating a very mature or slow-moving project that is likely in maintenance mode rather than active development. Its primary differentiator is its comprehensive handling of various proxy-related headers to accurately determine the client-facing URL.","language":"javascript","status":"maintenance","version":"1.2.3","tags":["javascript","http","https","url","original","resolve","parse","reconstruct","forward"],"install":[{"cmd":"npm install original-url","imports":["import originalUrl from 'original-url';","const originalUrl = require('original-url');","const url = originalUrl(req); console.log(url.protocol, url.host, url.pathname, url.query, url.full);"]},{"cmd":"yarn add original-url","imports":[]},{"cmd":"pnpm add original-url","imports":[]}],"homepage":null,"github":"https://github.com/watson/original-url","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/original-url","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/original-url/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}