{"id":15616726,"url":"https://github.com/passy/node-dom-urls","last_synced_at":"2025-08-16T21:14:52.293Z","repository":{"id":13000362,"uuid":"15679539","full_name":"passy/node-dom-urls","owner":"passy","description":"A partial implementation of the W3C URL Spec Draft for Node","archived":false,"fork":false,"pushed_at":"2017-05-17T09:41:34.000Z","size":12,"stargazers_count":15,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T04:48:29.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/passy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-06T16:54:36.000Z","updated_at":"2022-12-17T03:56:49.000Z","dependencies_parsed_at":"2022-09-16T14:42:11.349Z","dependency_job_id":null,"html_url":"https://github.com/passy/node-dom-urls","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/passy/node-dom-urls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Fnode-dom-urls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Fnode-dom-urls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Fnode-dom-urls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Fnode-dom-urls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passy","download_url":"https://codeload.github.com/passy/node-dom-urls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Fnode-dom-urls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270771927,"owners_count":24642387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T07:21:31.107Z","updated_at":"2025-08-16T21:14:52.271Z","avatar_url":"https://github.com/passy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Node DOM URLs\n=============\n\n[![Build Status](https://travis-ci.org/passy/node-dom-urls.png)](https://travis-ci.org/passy/node-dom-urls)\n[![Code Climate](https://codeclimate.com/github/passy/node-dom-urls.png)](https://codeclimate.com/github/passy/node-dom-urls)\n[![Analytics](https://ga-beacon.appspot.com/UA-587894-18/node-dom-urls/readme)](https://github.com/igrigorik/ga-beacon)\n\nA partial implementation of the [W3C URL Spec Draft](https://dvcs.w3.org/hg/url/raw-file/tip/Overview.html) for Node building on top of [URIjs](http://medialize.github.io/URI.js/).\n\nIf you find incompatibilities, please [report them](https://github.com/passy/node-dom-urls/issues). Error handling is currently very different from the spec.\n\nBrowser Polyfills\n-----------------\n\n  - [Joshua Bell's Polyfill](https://github.com/inexorabletash/polyfill/blob/master/url.js)\n  - [Eric Arvidsson's Polyfill](https://github.com/arv/DOM-URL-Polyfill)\n\nInstallation\n------------\n\n`npm install dom-urls`\n\nExample\n-------\n\n```js\n\nvar URL = require('dom-urls');\n\nvar url = new URL('relative', 'http://example.com/sub/');\n\nurl.protocol; // 'http:'\nurl.hostname; // 'example.com'\nurl.pathname; // '/sub/relative/'\n\nurl.host = 'example.net:8080';\nurl.port; // '8080'\n```\n\nWhy `urijs` instead of `url`?\n-----------------------------\n\nI tried it first, but Node's own URL module doesn't propagate changes, so\nchanging the `host` doesn't affect the port and vice-versa and I didn't want to\nreimplement all of that myself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassy%2Fnode-dom-urls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpassy%2Fnode-dom-urls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassy%2Fnode-dom-urls/lists"}