{"library":"url-to-options","type":"library","category":null,"description":"The `url-to-options` package is a focused utility designed to convert a WHATWG `URL` object into a plain JavaScript options object compatible with Node.js's native `http.request` and `https.request` methods. It abstracts the process of extracting host, port, protocol, auth, and path information from a standard URL representation. The current stable version is 2.0.0. Given its specific utility nature, the package is expected to have an infrequent release cadence, primarily for maintenance, bug fixes, or compatibility with newer Node.js versions or WHATWG URL specification changes. Its primary differentiator is its directness in bridging the WHATWG URL standard with Node's built-in HTTP client APIs, providing a clean way to construct request options without manual parsing.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","http","https","url","whatwg"],"last_verified":"Wed May 27","install":[{"cmd":"npm install url-to-options","imports":["import urlToOptions from 'url-to-options';","const urlToOptions = require('url-to-options');","const url = new URL('http://example.com');"]},{"cmd":"yarn add url-to-options","imports":[]},{"cmd":"pnpm add url-to-options","imports":[]}],"homepage":null,"github":"https://github.com/stevenvachon/url-to-options","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/url-to-options","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/url-to-options/compatibility"}}