{"library":"url-parse-as-address","type":"library","category":null,"description":"url-parse-as-address is a JavaScript utility for parsing URL strings, specifically designed to assume the `http` protocol if no scheme or leading `//` is explicitly provided. This behavior mimics how web browsers handle incomplete URL inputs, making it suitable for scenarios where user-entered addresses might lack full protocol specification (e.g., 'foo.com' instead of 'http://foo.com'). Published as version 1.0.0 over a decade ago, this package primarily functions as a CommonJS module. It provides a parsed object structure similar to Node.js's legacy `url.parse()` method, including properties like `protocol`, `host`, `pathname`, and `query`. Due to its age and lack of updates, newer projects are generally advised to use the WHATWG `URL` API (built into Node.js and modern browsers) or more actively maintained alternatives that offer better security, features, and ESM support, especially given its limited ecosystem adoption (17 dependents).","language":"javascript","status":"abandoned","version":"1.0.0","tags":["javascript","url","parse","addressbar","http"],"last_verified":"Wed May 27","install":[{"cmd":"npm install url-parse-as-address","imports":["const parse = require('url-parse-as-address');","const parse = require('url-parse-as-address');\nconst parsedUrl = parse.parse('foo.com');","const parse = require('url-parse-as-address');\nconst formattedUrl = parse.format({ protocol: 'http:', hostname: 'foo.com' });"]},{"cmd":"yarn add url-parse-as-address","imports":[]},{"cmd":"pnpm add url-parse-as-address","imports":[]}],"homepage":null,"github":"https://github.com/isaacs/url-parse-as-address","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/url-parse-as-address","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-parse-as-address/compatibility"}}