{"_id":"url2","_rev":"92998","name":"url2","description":"Node's URL module plus relative pathing","dist-tags":{"future":"2.0.0","latest":"1.0.4"},"maintainers":[{"name":"kriskowal","email":""}],"time":{"modified":"2021-06-03T10:30:51.000Z","created":"2012-11-28T06:01:25.468Z","1.0.4":"2015-03-30T16:17:55.929Z","2.0.0":"2014-05-19T23:28:47.854Z","1.0.3":"2014-03-21T18:51:07.133Z","1.0.2":"2014-03-20T20:06:53.555Z","1.0.1":"2014-03-19T23:24:57.882Z","1.0.0":"2013-07-20T17:34:23.186Z","0.0.0":"2012-11-28T06:01:25.468Z"},"users":{"jimjin":true},"author":{"name":"Kris Kowal","email":"kris@cixar.com","url":"https://github.com/kriskowal/url2"},"repository":{"type":"git","url":"git://github.com/kriskowal/url2.git"},"versions":{"1.0.4":{"name":"url2","version":"1.0.4","description":"Node's URL module plus relative pathing","author":{"name":"Kris Kowal","email":"kris@cixar.com","url":"https://github.com/kriskowal/url2"},"homepage":"https://github.com/kriskowal/url2","keywords":["url","relative","resolve","parse","format"],"main":"url2.js","repository":{"type":"git","url":"git://github.com/kriskowal/url2.git"},"dependencies":{"url":"0.10.2"},"devDependencies":{"jshint":">=2.1 <3","jasminum":">=0.0.3 < 0.1"},"scripts":{"test":"jasminum test && npm run lint","lint":"jshint url2.js"},"gitHead":"6af194127d3c6540be86c146f871e96a7a547af0","bugs":{"url":"https://github.com/kriskowal/url2/issues"},"_id":"url2@1.0.4","_shasum":"df2284ae15c749ba809751510e5e25da9ebb80d8","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"maintainers":[{"name":"kriskowal","email":""}],"dist":{"shasum":"df2284ae15c749ba809751510e5e25da9ebb80d8","size":3399,"noattachment":false,"key":"/url2/-/url2-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/url2/download/url2-1.0.4.tgz"},"directories":{},"publish_time":1427732275929,"_cnpm_publish_time":1427732275929,"_hasShrinkwrap":false},"2.0.0":{"name":"url2","version":"2.0.0","unpublished":true,"publishConfig":{"tag":"future"},"description":"Node's URL module plus relative pathing","author":{"name":"Kris Kowal","email":"kris@cixar.com","url":"https://github.com/kriskowal/url2"},"homepage":"https://github.com/kriskowal/url2","keywords":["url","relative","resolve","parse","format"],"main":"url2.js","repository":{"type":"git","url":"git://github.com/kriskowal/url2.git"},"dependencies":{"url":">=0.7.9 <0.8.0"},"devDependencies":{"jshint":">=2.1 <3.0.0","jasminum":">=2.0.5 <3.0.0"},"scripts":{"test":"jasminum test && jasminum-phantom test && npm run lint","lint":"jshint url2.js"},"bugs":{"url":"https://github.com/kriskowal/url2/issues"},"_id":"url2@2.0.0","dist":{"shasum":"90a3a367de39cb46af41602a0169ee868df4512c","size":3421,"noattachment":false,"key":"/url2/-/url2-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/url2/download/url2-2.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"maintainers":[{"name":"kriskowal","email":""}],"directories":{},"publish_time":1400542127854,"_cnpm_publish_time":1400542127854,"_hasShrinkwrap":false},"1.0.3":{"name":"url2","version":"1.0.3","description":"Node's URL module plus relative pathing","author":{"name":"Kris Kowal","email":"kris@cixar.com","url":"https://github.com/kriskowal/url2"},"homepage":"https://github.com/kriskowal/url2","keywords":["url","relative","resolve","parse","format"],"main":"url2.js","repository":{"type":"git","url":"git://github.com/kriskowal/url2.git"},"dependencies":{"url":">=0.7.9 <0.8"},"devDependencies":{"jshint":">=2.1 <3","jasminum":">=0.0.3 < 0.1"},"scripts":{"test":"jasminum test && npm run lint","lint":"jshint url2.js"},"bugs":{"url":"https://github.com/kriskowal/url2/issues"},"_id":"url2@1.0.3","dist":{"shasum":"f9b19c3a1fca44c76a7e5777e135f64ef124dad3","size":3399,"noattachment":false,"key":"/url2/-/url2-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/url2/download/url2-1.0.3.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"maintainers":[{"name":"kriskowal","email":""}],"directories":{},"publish_time":1395427867133,"_hasShrinkwrap":false,"_cnpm_publish_time":1395427867133},"1.0.2":{"name":"url2","version":"1.0.2","description":"Node's URL module plus relative pathing","author":{"name":"Kris Kowal","email":"kris@cixar.com","url":"https://github.com/kriskowal/url2"},"homepage":"https://github.com/kriskowal/url2","keywords":["url","relative","resolve","parse","format"],"main":"url2.js","repository":{"type":"git","url":"git://github.com/kriskowal/url2.git"},"dependencies":{"url":"^0.7.9"},"devDependencies":{"jshint":"^2.1","jasminum":"^2.0.1"},"scripts":{"test":"jasminum test && jasminum-phantom test && npm run lint","cover":"echo TODO","lint":"jshint url2.js"},"bugs":{"url":"https://github.com/kriskowal/url2/issues"},"_id":"url2@1.0.2","dist":{"shasum":"41ec0e145c56a903247f343ddf65ac6ff1da8b1a","size":3408,"noattachment":false,"key":"/url2/-/url2-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/url2/download/url2-1.0.2.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"maintainers":[{"name":"kriskowal","email":""}],"directories":{},"publish_time":1395346013555,"_hasShrinkwrap":false,"_cnpm_publish_time":1395346013555},"1.0.1":{"name":"url2","version":"1.0.1","description":"Node's URL module plus relative pathing","author":{"name":"Kris Kowal","email":"kris@cixar.com","url":"https://github.com/kriskowal/url2"},"homepage":"https://github.com/kriskowal/url2","keywords":["url","relative","resolve","parse","format"],"main":"url2.js","repository":{"type":"git","url":"git://github.com/kriskowal/url2.git"},"dependencies":{"url":"^0.7.9"},"devDependencies":{"jshint":"^2.1","jasminum":"^0.0.3"},"scripts":{"test":"jasminum test && npm run lint","cover":"echo TODO","lint":"jshint url2.js"},"bugs":{"url":"https://github.com/kriskowal/url2/issues"},"_id":"url2@1.0.1","dist":{"shasum":"6618737960ddcf6bfa4318ccb1ad2f7eaf442485","size":3395,"noattachment":false,"key":"/url2/-/url2-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/url2/download/url2-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"maintainers":[{"name":"kriskowal","email":""}],"directories":{},"publish_time":1395271497882,"_hasShrinkwrap":false,"_cnpm_publish_time":1395271497882},"1.0.0":{"name":"url2","version":"1.0.0","description":"Node's URL module plus relative pathing","author":{"name":"Kris Kowal","email":"kris@cixar.com","url":"https://github.com/kriskowal/url2"},"homepage":"https://github.com/kriskowal/url2","keywords":["url","relative","resolve","parse","format"],"main":"url2.js","repository":{"type":"git","url":"git://github.com/kriskowal/url2.git"},"devDependencies":{"jshint":"~2.1","jasmine-node":"~1.2","cover":"~0.2.8","opener":"~1.3"},"scripts":{"test":"jasmine-node test","lint":"jshint url2.js","cover":"cover run node_modules/jasmine-node/bin/jasmine-node test && cover report html && opener cover_html/index.html"},"bugs":{"url":"https://github.com/kriskowal/url2/issues"},"_id":"url2@1.0.0","dist":{"shasum":"b5a2866099aa217e3da7f4f90c9abeec0771cae8","size":3380,"noattachment":false,"key":"/url2/-/url2-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/url2/download/url2-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"maintainers":[{"name":"kriskowal","email":""}],"directories":{},"publish_time":1374341663186,"_hasShrinkwrap":false,"_cnpm_publish_time":1374341663186},"0.0.0":{"name":"url2","version":"0.0.0","description":"Node's URL module plus relative pathing","author":{"name":"Kris Kowal","email":"kris@cixar.com","url":"https://github.com/kriskowal/url2"},"homepage":"https://github.com/kriskowal/url2","keywords":["url"],"main":"url2.js","repository":{"type":"git","url":"git://github.com/kriskowal/url2.git"},"devDependencies":{"jshint":">=0.9.1","jasmine-node":"*","cover":"*","opener":"*"},"scripts":{"test":"jasmine-node test","lint":"jshint url2.js","cover":"cover run node_modules/jasmine-node/bin/jasmine-node test && cover report html && opener cover_html/index.html"},"_id":"url2@0.0.0","dist":{"shasum":"4eaabd1d5c3ac90d62ab4485c998422865a04b1a","size":3294,"noattachment":false,"key":"/url2/-/url2-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/url2/download/url2-0.0.0.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"maintainers":[{"name":"kriskowal","email":""}],"directories":{},"publish_time":1354082485468,"_hasShrinkwrap":false,"_cnpm_publish_time":1354082485468}},"readme":"\nURL2\n----\n\nThis module builds upon the existing URL module in NodeJS, but adds\n`relative(source, target)` which returns the shortest relative path\nbetween any two equally qualified URL’s.  If the paths are not equally\nqualified, it returns the target.\n\nIn addition, this package augments the URL object definition as returned\nby `parse` and consumed by `format`.\n\n-   `pathname` is broken down into\n    -   `root`: whether the path is qualified from the root of the\n        domain.\n    -   `relative`: the relative path, from the root if `pathname` is\n        qualified from the domain root.\n        -   `directories`: an array of path components\n        -   `file`: the name of the file, or null if the URL points to a\n            directory, indicated by a final slash.\n\nAdditionally, `format` uses the `path` property if it exists, instead of\n`pathname` and `search`.\n\n----\n\nBased on my earlier work for [Narwhal][].\n\n[Narwhal]: https://github.com/kriskowal/narwhal-lib/blob/master/lib/narwhal/uri.js\n\nCopyright 2012 Kristopher Michael Kowal. All rights reserved.\nMIT License\n\n","_attachments":{},"homepage":"https://github.com/kriskowal/url2","bugs":{"url":"https://github.com/kriskowal/url2/issues"}}