{"_id":"dom-urls","_rev":"370150","name":"dom-urls","description":"DOM URLs for Node","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"passy","email":"phartig@rdrei.net"}],"time":{"modified":"2021-07-26T06:58:15.000Z","created":"2014-01-06T17:03:00.217Z","1.1.0":"2015-10-13T13:42:59.847Z","1.0.0":"2015-06-04T11:48:23.991Z","0.1.1":"2014-01-14T23:41:08.108Z","0.1.0":"2014-01-06T17:03:00.217Z"},"users":{"getify":true},"author":{"name":"Pascal Hartig","email":"passy@twitter.com","url":"http://passy.me/"},"repository":{"type":"git","url":"git://github.com/passy/node-dom-urls.git"},"versions":{"1.1.0":{"name":"dom-urls","version":"1.1.0","description":"DOM URLs for Node","main":"index.js","files":["index.js"],"scripts":{"test":"mocha -u tdd"},"repository":{"type":"git","url":"git://github.com/passy/node-dom-urls.git"},"keywords":["dom","url","urls"],"author":{"name":"Pascal Hartig","email":"passy@twitter.com","url":"http://passy.me/"},"engines":{"node":">=0.8.0"},"license":"MIT","bugs":{"url":"https://github.com/passy/node-dom-urls/issues"},"devDependencies":{"chai":"^3.3.0","mocha":"^2.3.3"},"dependencies":{"urijs":"^1.16.1"},"gitHead":"b4e559d2f9e48a8828b9c90fefbee73557509be5","homepage":"https://github.com/passy/node-dom-urls#readme","_id":"dom-urls@1.1.0","_shasum":"001ddf81628cd1e706125c7176f53ccec55d918e","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"passy","email":"phartig@rdrei.net"},"maintainers":[{"name":"passy","email":"phartig@rdrei.net"}],"dist":{"shasum":"001ddf81628cd1e706125c7176f53ccec55d918e","size":2699,"noattachment":false,"key":"/dom-urls/-/dom-urls-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-urls/download/dom-urls-1.1.0.tgz"},"directories":{},"publish_time":1444743779847,"_cnpm_publish_time":1444743779847,"_hasShrinkwrap":false},"1.0.0":{"name":"dom-urls","version":"1.0.0","description":"DOM URLs for Node","main":"index.js","files":["index.js"],"scripts":{"test":"mocha -u tdd"},"repository":{"type":"git","url":"git://github.com/passy/node-dom-urls.git"},"keywords":["dom","url","urls"],"author":{"name":"Pascal Hartig","email":"passy@twitter.com","url":"http://passy.me/"},"engines":{"node":">=0.8.0"},"license":"MIT","bugs":{"url":"https://github.com/passy/node-dom-urls/issues"},"devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"dependencies":{"URIjs":"^1.15.1"},"gitHead":"cea4a90a13d5cebc3cd168593d96353470df55cd","homepage":"https://github.com/passy/node-dom-urls#readme","_id":"dom-urls@1.0.0","_shasum":"ee65a015af9e424124ae01a016897c2e509c83a5","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.8.1","_npmUser":{"name":"passy","email":"phartig@rdrei.net"},"maintainers":[{"name":"passy","email":"phartig@rdrei.net"}],"dist":{"shasum":"ee65a015af9e424124ae01a016897c2e509c83a5","size":2703,"noattachment":false,"key":"/dom-urls/-/dom-urls-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-urls/download/dom-urls-1.0.0.tgz"},"directories":{},"publish_time":1433418503991,"_cnpm_publish_time":1433418503991,"_hasShrinkwrap":false},"0.1.1":{"name":"dom-urls","version":"0.1.1","description":"DOM URLs for Node","main":"index.js","files":["index.js"],"scripts":{"test":"mocha -u tdd"},"repository":{"type":"git","url":"git://github.com/passy/node-dom-urls"},"keywords":["dom","url","urls"],"author":{"name":"Pascal Hartig","email":"passy@twitter.com","url":"http://passy.me/"},"engines":{"node":">=0.8.0"},"license":"MIT","bugs":{"url":"https://github.com/passy/node-dom-urls/issues"},"devDependencies":{"mocha":"~1.16.2","chai":"~1.8.1"},"dependencies":{"URIjs":"~1.11.2"},"readmeFilename":"README.md","homepage":"https://github.com/passy/node-dom-urls","_id":"dom-urls@0.1.1","dist":{"shasum":"5e8b013a9f053f1481f25d31a75e5a49c3ca9c87","size":2013,"noattachment":false,"key":"/dom-urls/-/dom-urls-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-urls/download/dom-urls-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"passy","email":"phartig@rdrei.net"},"maintainers":[{"name":"passy","email":"phartig@rdrei.net"}],"directories":{},"publish_time":1389742868108,"_cnpm_publish_time":1389742868108,"_hasShrinkwrap":false},"0.1.0":{"name":"dom-urls","version":"0.1.0","description":"DOM URLs for Node","main":"index.js","files":["index.js"],"scripts":{"test":"mocha -u tdd"},"repository":{"type":"git","url":"git://github.com/passy/node-dom-urls"},"keywords":["dom","url","urls"],"author":{"name":"Pascal Hartig","email":"passy@twitter.com","url":"http://passy.me/"},"engines":{"node":">=0.8.0"},"license":"MIT","bugs":{"url":"https://github.com/passy/node-dom-urls/issues"},"devDependencies":{"mocha":"~1.16.2","chai":"~1.8.1"},"dependencies":{"URIjs":"~1.11.2"},"readmeFilename":"README.md","_id":"dom-urls@0.1.0","dist":{"shasum":"17e1a16da69b999fd52b5cf7dbef7094dd27b569","size":1703,"noattachment":false,"key":"/dom-urls/-/dom-urls-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-urls/download/dom-urls-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"passy","email":"phartig@rdrei.net"},"maintainers":[{"name":"passy","email":"phartig@rdrei.net"}],"directories":{},"publish_time":1389027780217,"_cnpm_publish_time":1389027780217,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/passy/node-dom-urls#readme","bugs":{"url":"https://github.com/passy/node-dom-urls/issues"},"license":"MIT"}