{
	"name": "resolve-url",
	"versions": {
		"0.1.0": {
			"name": "resolve-url",
			"version": "0.1.0",
			"description": "Like Node.js’ `path.resolve`/`url.resolve` for the browser.",
			"author": {
				"name": "Simon Lydell"
			},
			"license": "MIT",
			"main": "resolve-url.js",
			"repository": {
				"type": "git",
				"url": "git://github.com/lydell/resolve-url"
			},
			"keywords": [
				"resolve",
				"url"
			],
			"scripts": {
				"test": "jshint resolve-url.js test/ && testling -u"
			},
			"devDependencies": {
				"testling": "~1.6.0",
				"mocha": "~1.17.1",
				"chai": "~1.9.0",
				"jshint": "~2.4.3"
			},
			"testling": {
				"harness": "mocha",
				"files": "test/*.js",
				"browsers": [
					"ie/8..latest",
					"chrome/latest",
					"firefox/latest",
					"opera/12",
					"opera/latest",
					"safari/5",
					"iphone/6",
					"android-browser/4"
				]
			},
			"bugs": {
				"url": "https://github.com/lydell/resolve-url/issues"
			},
			"homepage": "https://github.com/lydell/resolve-url",
			"_id": "resolve-url@0.1.0",
			"dist": {
				"shasum": "f7d376cb5784b0b0fbf54d822b3d516666358fca",
				"tarball": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.1.0.tgz"
			},
			"_from": ".",
			"_npmVersion": "1.4.3",
			"_npmUser": {
				"name": "lydell",
				"email": "simon.lydell@gmail.com"
			},
			"maintainers": [
				{
					"name": "lydell",
					"email": "simon.lydell@gmail.com"
				}
			],
			"directories": {},
			"deprecated": "https://github.com/lydell/resolve-url#deprecated",
			"contributors": []
		},
		"0.2.0": {
			"name": "resolve-url",
			"version": "0.2.0",
			"description": "Like Node.js’ `path.resolve`/`url.resolve` for the browser.",
			"author": {
				"name": "Simon Lydell"
			},
			"license": "MIT",
			"main": "resolve-url.js",
			"repository": {
				"type": "git",
				"url": "git://github.com/lydell/resolve-url"
			},
			"keywords": [
				"resolve",
				"url"
			],
			"scripts": {
				"test": "jshint resolve-url.js test/ && testling -u"
			},
			"devDependencies": {
				"testling": "~1.6.0",
				"jshint": "~2.4.3",
				"tape": "~2.5.0"
			},
			"testling": {
				"files": "test/*.js",
				"browsers": [
					"ie/8..latest",
					"chrome/latest",
					"firefox/latest",
					"opera/12",
					"opera/latest",
					"safari/5",
					"iphone/6",
					"android-browser/4"
				]
			},
			"bugs": {
				"url": "https://github.com/lydell/resolve-url/issues"
			},
			"homepage": "https://github.com/lydell/resolve-url",
			"_id": "resolve-url@0.2.0",
			"dist": {
				"shasum": "9479e58d94ea036d13f550d6ca14c3938cebbf67",
				"tarball": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.0.tgz"
			},
			"_from": ".",
			"_npmVersion": "1.4.4",
			"_npmUser": {
				"name": "lydell",
				"email": "simon.lydell@gmail.com"
			},
			"maintainers": [
				{
					"name": "lydell",
					"email": "simon.lydell@gmail.com"
				}
			],
			"directories": {},
			"deprecated": "https://github.com/lydell/resolve-url#deprecated",
			"contributors": []
		},
		"0.2.1": {
			"name": "resolve-url",
			"version": "0.2.1",
			"description": "Like Node.js’ `path.resolve`/`url.resolve` for the browser.",
			"author": {
				"name": "Simon Lydell"
			},
			"license": "MIT",
			"main": "resolve-url.js",
			"repository": {
				"type": "git",
				"url": "git://github.com/lydell/resolve-url"
			},
			"keywords": [
				"resolve",
				"url"
			],
			"scripts": {
				"test": "jshint resolve-url.js test/ && testling -u"
			},
			"devDependencies": {
				"testling": "~1.6.0",
				"jshint": "~2.4.3",
				"tape": "~2.5.0"
			},
			"testling": {
				"files": "test/*.js",
				"browsers": [
					"ie/8..latest",
					"chrome/latest",
					"firefox/latest",
					"opera/12",
					"opera/latest",
					"safari/5",
					"iphone/6",
					"android-browser/4"
				]
			},
			"bugs": {
				"url": "https://github.com/lydell/resolve-url/issues"
			},
			"homepage": "https://github.com/lydell/resolve-url",
			"_id": "resolve-url@0.2.1",
			"dist": {
				"shasum": "2c637fe77c893afd2a663fe21aa9080068e2052a",
				"tarball": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz"
			},
			"_from": ".",
			"_npmVersion": "1.4.4",
			"_npmUser": {
				"name": "lydell",
				"email": "simon.lydell@gmail.com"
			},
			"maintainers": [
				{
					"name": "lydell",
					"email": "simon.lydell@gmail.com"
				}
			],
			"directories": {},
			"deprecated": "https://github.com/lydell/resolve-url#deprecated",
			"contributors": []
		}
	},
	"time": {
		"modified": "2020-03-28T23:10:48.836Z",
		"created": "2014-02-23T20:21:23.451Z",
		"0.1.0": "2014-02-23T20:21:23.452Z",
		"0.2.0": "2014-02-24T20:38:15.897Z",
		"0.2.1": "2014-02-25T18:48:50.732Z"
	},
	"users": {},
	"dist-tags": {
		"latest": "0.2.1"
	},
	"_uplinks": {
		"npmjs": {
			"etag": "W/\"6b90ac514fedf551ede9f9b6a23b6a0e\"",
			"fetched": 1597847611797
		}
	},
	"_distfiles": {
		"resolve-url-0.1.0.tgz": {
			"url": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.1.0.tgz",
			"sha": "f7d376cb5784b0b0fbf54d822b3d516666358fca",
			"registry": "npmjs"
		},
		"resolve-url-0.2.0.tgz": {
			"url": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.0.tgz",
			"sha": "9479e58d94ea036d13f550d6ca14c3938cebbf67",
			"registry": "npmjs"
		},
		"resolve-url-0.2.1.tgz": {
			"url": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz",
			"sha": "2c637fe77c893afd2a663fe21aa9080068e2052a",
			"registry": "npmjs"
		}
	},
	"_attachments": {
		"resolve-url-0.2.1.tgz": {
			"shasum": "2c637fe77c893afd2a663fe21aa9080068e2052a"
		}
	},
	"_rev": "12-0911c6de9ecb94ce",
	"_id": "resolve-url",
	"readme": "Overview\r\n========\r\n\r\n[![browser support](https://ci.testling.com/lydell/resolve-url.png)](https://ci.testling.com/lydell/resolve-url)\r\n\r\nLike Node.js’ [`path.resolve`]/[`url.resolve`] for the browser.\r\n\r\n```js\r\nvar resolveUrl = require(\"resolve-url\")\r\n\r\nwindow.location\r\n// https://example.com/articles/resolving-urls/edit\r\n\r\nresolveUrl(\"remove\")\r\n// https://example.com/articles/resolving-urls/remove\r\n\r\nresolveUrl(\"/static/scripts/app.js\")\r\n// https://example.com/static/scripts/app.js\r\n\r\n// Imagine /static/scripts/app.js contains `//# sourceMappingURL=../source-maps/app.js.map`\r\nresolveUrl(\"/static/scripts/app.js\", \"../source-maps/app.js.map\")\r\n// https://example.com/static/source-maps/app.js.map\r\n\r\nresolveUrl(\"/static/scripts/app.js\", \"../source-maps/app.js.map\", \"../coffee/app.coffee\")\r\n// https://example.com/static/coffee/app.coffee\r\n\r\nresolveUrl(\"//cdn.example.com/jquery.js\")\r\n// https://cdn.example.com/jquery.js\r\n\r\nresolveUrl(\"http://foo.org/\")\r\n// http://foo.org/\r\n```\r\n\r\n\r\nInstallation\r\n============\r\n\r\n- `npm install resolve-url`\r\n- `bower install resolve-url`\r\n- `component install lydell/resolve-url`\r\n\r\nWorks with CommonJS, AMD and browser globals, through UMD.\r\n\r\n\r\nUsage\r\n=====\r\n\r\n### `resolveUrl(...urls)` ###\r\n\r\nPass one or more urls. Resolves the last one to an absolute url, using the\r\nprevious ones and `window.location`.\r\n\r\nIt’s like starting out on `window.location`, and then clicking links with the\r\nurls as `href` attributes in order, from left to right.\r\n\r\nUnlike Node.js’ [`path.resolve`], this function always goes through all of the\r\narguments, from left to right. `path.resolve` goes from right to left and only\r\nin the worst case goes through them all. Should that matter.\r\n\r\nActually, the function is _really_ like clicking a lot of links in series: An\r\nactual `<a>` gets its `href` attribute set for each url! This means that the\r\nurl resolution of the browser is used, which makes this module really\r\nlight-weight.\r\n\r\nAlso note that this functions deals with urls, not paths, so in that respect it\r\nhas more in common with Node.js’ [`url.resolve`]. But the arguments are more\r\nlike [`path.resolve`].\r\n\r\n[`path.resolve`]: http://nodejs.org/api/path.html#path_path_resolve_from_to\r\n[`url.resolve`]: http://nodejs.org/api/url.html#url_url_resolve_from_to\r\n\r\n\r\nTests\r\n=====\r\n\r\nRun `npm test`, which lints the code and then gives you a link to open in a\r\nbrowser of choice (using `testling`).\r\n\r\n\r\nLicense\r\n=======\r\n\r\n[The X11 (“MIT”) License](LICENSE)."
}