{"_id":"@zkochan/npm-package-arg","_rev":"7-5581d74a427c2d0489fec34980ae1a8d","name":"@zkochan/npm-package-arg","description":"Parse the things that can be arguments to `npm install`","dist-tags":{"latest":"2.0.1","next":"2.0.0"},"versions":{"1.0.0":{"name":"@zkochan/npm-package-arg","version":"1.0.0","description":"Parse the things that can be arguments to `npm install`","main":"npa.js","directories":{"test":"test"},"files":["npa.js"],"dependencies":{"hosted-git-info":"^2.5.0","osenv":"^0.1.4","semver":"^5.4.1","validate-npm-package-name":"^3.0.0"},"devDependencies":{"standard":"9.0.2","tap":"^10.3.0"},"scripts":{"test":"standard && tap -J --coverage test/*.js"},"repository":{"type":"git","url":"git+https://github.com/npm/npm-package-arg.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","bugs":{"url":"https://github.com/npm/npm-package-arg/issues"},"homepage":"https://github.com/npm/npm-package-arg","gitHead":"5e77660d9d2d6ad101905dd65b27675352837b45","_id":"@zkochan/npm-package-arg@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-ufMBw0x+4y7uaiPu1uhwMaHaysLB57+EJoo63DGf28FG+TIrYiIIE886qSNXuDqyhqt+PVsRLB9e8+QVGe+Dtg==","shasum":"51f8623e4d697bca311007f0180c190aabb6efe7","tarball":"https://registry.npmjs.org/@zkochan/npm-package-arg/-/npm-package-arg-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIADIWb3LpZwAoNhGyrhh/4lwBmE5vuProSIr/hjYQLC2AiBjc97UjA6klGwJIiBz0lYn6yccuUUjl1gGxFos6cGXag=="}]},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-package-arg-1.0.0.tgz_1511045630710_0.29865804105065763"}},"1.0.1":{"name":"@zkochan/npm-package-arg","version":"1.0.1","description":"Parse the things that can be arguments to `npm install`","main":"npa.js","directories":{"test":"test"},"dependencies":{"hosted-git-info":"^2.5.0","semver":"^5.4.1","validate-npm-package-name":"^3.0.0"},"devDependencies":{"standard":"9.0.2","tap":"^10.3.0"},"scripts":{"test":"standard && tap -J --coverage test/*.js"},"repository":{"type":"git","url":"git+https://github.com/zkochan/npm-package-arg.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","bugs":{"url":"https://github.com/zkochan/npm-package-arg/issues"},"homepage":"https://github.com/zkochan/npm-package-arg","gitHead":"d7380ed9eb60e8f1726017188b580c85d9ebfec4","_id":"@zkochan/npm-package-arg@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-+GTWIojbxb8DOuvoIRnJY1qnJnCT3L+SFC24DEAc6bcdstzh/cDGErstTqFRkQOaJ+hTCyrpjJej03coOLZlUQ==","shasum":"596ebf8a764ccc4f4102504db2ba12faef8c32ff","tarball":"https://registry.npmjs.org/@zkochan/npm-package-arg/-/npm-package-arg-1.0.1.tgz","fileCount":4,"unpackedSize":13720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/wo+CRA9TVsSAnZWagAAM/kP/0LbkKZHQ1LWJHRsf/HO\n7JtDIloLYOHjyTVarH9v7kuGi6Px/icU1Vk1ZyUwEwppEjlAm8bIfMxgWwPm\nIqtCg+BjjNpi8+xHDRlXq5Qv2Uk/d/2ZbIK9nGO8JUJ7dcyRsd743Hvc246g\n2AqDHUEVYTKNMiN6Kn5HLbt9NAt85ey4+D4PA9NxlogjTITvM3JtAkiabE4m\nGYML+UHYsSUUlLlCAZQWw1ksZnIEi+0CPSn7jglbrRKeDeSgM91JZ6Ps26lM\nEFRJ/ReoC3bP4BeTIPENGKgvE6a3GSNrfHgoLuKXFNgLvjoMFAO0ouDvvtA8\nLd7/JADRfMmKNHLDA0EhxJF3ShjrX8uIoXEpZS9Uv088SAqjCACCpORNn1Xj\npItBt2UwyESYyWqJSf6noD6jIyNd3Q08ADNtcxX1Obq4kiwPva0xEbBcszbj\nxpQRfB//uc9EOwBcy3P12hJdcKH4sQexwaH1bOm9SleiCEsy7QKomPlVsi2x\nT7F9XzBawm8XLSjnkBcdFur2SmDj6VvMQj4ZJzrRnRNfXOPQQy6t0j3okYoA\nfleV9bO389mJd+xztivoKojONUp4YcDl6q/iDI9HOTCuwe0dmbiV0kTcNAih\nSrz6xHIzHMA0cOvDtqhhgCKg7PqlPF1jeQQ0DRa/i9ImjV+kRRqhglmx8V6K\nDEKR\r\n=axW8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBtw1v1s85KqQFM63enxuPOp7T3bOU1Rv4RXqGlpFtqAiBttCRh129AoXi+nLsrrQ6OsfuDbudJ0EZ9M5bzPjPzbQ=="}]},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-package-arg_1.0.1_1543440957650_0.9488698647086151"},"_hasShrinkwrap":false},"1.0.2":{"name":"@zkochan/npm-package-arg","version":"1.0.2","description":"Parse the things that can be arguments to `npm install`","main":"npa.js","directories":{"test":"test"},"dependencies":{"hosted-git-info":"^2.5.0","semver":"^6.0.0","validate-npm-package-name":"^3.0.0"},"devDependencies":{"standard":"9.0.2","tap":"^10.3.0"},"scripts":{"test":"standard && tap -J --coverage test/*.js"},"repository":{"type":"git","url":"git+https://github.com/zkochan/npm-package-arg.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","bugs":{"url":"https://github.com/zkochan/npm-package-arg/issues"},"homepage":"https://github.com/zkochan/npm-package-arg","gitHead":"4be0b127a2f82bc23c64d912e75c685df5b5599d","_id":"@zkochan/npm-package-arg@1.0.2","_nodeVersion":"10.12.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-9hHFHZTOexP/oge2GMQzPlhdi9IJ+Zgnobh7sNfSdIZepULMM/lNQE4hmkFDC2zk8+OBibtfHbUPulNZI18TQA==","shasum":"9495fecbce46c31abe98bac8cb813b7b195b8045","tarball":"https://registry.npmjs.org/@zkochan/npm-package-arg/-/npm-package-arg-1.0.2.tgz","fileCount":4,"unpackedSize":13720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoPxrCRA9TVsSAnZWagAAoZUP/iSOz2R5Wp1PyvtV3CZJ\nrZVgWgGPOk/Wd93kdIfVweKo4nXGu24uRWAJfPWA+N4CPS4fZJNfEYzurjrl\nXEZAL0aEYXAH6ztnX0uRgtHCo+tAazCdDQE3zhZK/y73BAbciu5zckr1MjjP\nPnsCrtTh6LN1QeTp2wA53HBHAXHSxygkQGh1xqCLr/B6xafv4lgGPyRPYi5G\nFzB9lgOsV0ndtk6STTuTXMypG+NmnNzMpGzj9O1MeRBuWZC6mve9TOFy6gqf\nS21TymdnDvHouQnC9ExFbTmhKJSnzYK2CxcMdsyX5O+eF3D1LJyQ19jqzo2J\naltKxu2qz4xxu+PHLVlo3GQhC8qI5cRNM1yDxd/oiq0KcYozSLkpiYPM3cdg\nSsXKb5vZMu5DBI+dGZO/QQyhmRFsWPKgu8E/49zNccj/KXnTL1pIwDfn2Vs5\ncbey1zbC1QiHOGJsep6i0W/z9IzgqOfcAHvnl5W1ViLHywSN3NWyeNov2pPy\nDLlGci6UzsFq6gdscr2z+KCjwyQY0XWl5xhK7i6U24xqito3nLmKjqtnWmzC\nKjyYRVeMjwH6SAF9KYKibR1Crj3hPk1PHjXvZzDDe8XPmCnK9Qf9yPbRMnYt\nB2GxggP+tKbKLak1140VuquQkhBqsfJVtr3MkNDO47E+CqhMMXdzTlQ42GNU\nvWPa\r\n=wH9U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjkH4sHgQN3MtVEL9k2zfp5ltQbzIJO9HrIzGS4UZoegIgD5UJ8wG85i07F4voylLcp5pRREKhojZIZXA59B28d10="}]},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-package-arg_1.0.2_1554054250818_0.21119769479148442"},"_hasShrinkwrap":false},"2.0.0":{"name":"@zkochan/npm-package-arg","version":"2.0.0","description":"Parse the things that can be arguments to `npm install`","main":"npa.js","engines":{"node":">=10.13"},"directories":{"test":"test"},"dependencies":{"hosted-git-info":"^3.0.4","semver":"^7.3.2","validate-npm-package-name":"^3.0.0"},"devDependencies":{"standard":"14.3.3","tap":"^14.10.7"},"scripts":{"test":"standard && tap -J --coverage test/*.js"},"repository":{"type":"git","url":"git+https://github.com/zkochan/npm-package-arg.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","bugs":{"url":"https://github.com/zkochan/npm-package-arg/issues"},"homepage":"https://github.com/zkochan/npm-package-arg","readme":"# @zkochan/npm-package-arg\n\nParses package name and specifier passed to commands like `npm install` or\n`npm cache add`, or as found in `package.json` dependency sections.\n\n## EXAMPLES\n\n```javascript\nvar assert = require(\"assert\")\nvar npa = require(\"@zkochan/npm-package-arg\")\n\n// Pass in the descriptor, and it'll return an object\ntry {\n  var parsed = npa(\"@bar/foo@1.2\")\n} catch (ex) {\n  …\n}\n```\n\n## USING\n\n`var npa = require('@zkochan/npm-package-arg')`\n\n### var result = npa(*arg*[, *where*])\n\n* *arg* - a string that you might pass to `npm install`, like:\n`foo@1.2`, `@bar/foo@1.2`, `foo@user/foo`, `http://x.com/foo.tgz`,\n`git+https://github.com/user/foo`, `bitbucket:user/foo`, `foo.tar.gz`,\n`../foo/bar/` or `bar`.  If the *arg* you provide doesn't have a specifier\npart, eg `foo` then the specifier will default to `latest`.\n* *where* - Optionally the path to resolve file paths relative to. Defaults to `process.cwd()`\n\n**Throws** if the package name is invalid, a dist-tag is invalid or a URL's protocol is not supported.\n\n### var result = npa.resolve(*name*, *spec*[, *where*])\n\n* *name* - The name of the module you want to install. For example: `foo` or `@bar/foo`.\n* *spec* - The specifier indicating where and how you can get this module. Something like:\n`1.2`, `^1.7.17`, `http://x.com/foo.tgz`, `git+https://github.com/user/foo`,\n`bitbucket:user/foo`, `file:foo.tar.gz` or `file:../foo/bar/`.  If not\nincluded then the default is `latest`.\n* *where* - Optionally the path to resolve file paths relative to. Defaults to `process.cwd()`\n\n**Throws** if the package name is invalid, a dist-tag is invalid or a URL's protocol is not supported.\n\n## RESULT OBJECT\n\nThe objects that are returned by @zkochan/npm-package-arg contain the following\nkeys:\n\n* `type` - One of the following strings:\n  * `git` - A git repo\n  * `tag` - A tagged version, like `\"foo@latest\"`\n  * `version` - A specific version number, like `\"foo@1.2.3\"`\n  * `range` - A version range, like `\"foo@2.x\"`\n  * `file` - A local `.tar.gz`, `.tar` or `.tgz` file.\n  * `directory` - A local directory.\n  * `remote` - An http url (presumably to a tgz)\n* `registry` - If true this specifier refers to a resource hosted on a\n  registry.  This is true for `tag`, `version` and `range` types.\n* `name` - If known, the `name` field expected in the resulting pkg.\n* `scope` - If a name is something like `@org/module` then the `scope`\n  field will be set to `@org`.  If it doesn't have a scoped name, then\n  scope is `null`.\n* `escapedName` - A version of `name` escaped to match the npm scoped packages\n  specification. Mostly used when making requests against a registry. When\n  `name` is `null`, `escapedName` will also be `null`.\n* `rawSpec` - The specifier part that was parsed out in calls to `npa(arg)`,\n  or the value of `spec` in calls to `npa.resolve(name, spec).\n* `saveSpec` - The normalized specifier, for saving to package.json files.\n  `null` for registry dependencies.\n* `fetchSpec` - The version of the specifier to be used to fetch this\n  resource.  `null` for shortcuts to hosted git dependencies as there isn't\n  just one URL to try with them.\n* `gitRange` - If set, this is a semver specifier to match against git tags with\n* `gitCommittish` - If set, this is the specific committish to use with a git dependency.\n* `hosted` - If `from === 'hosted'` then this will be a `hosted-git-info`\n  object. This property is not included when serializing the object as\n  JSON.\n* `raw` - The original un-modified string that was provided.  If called as\n  `npa.resolve(name, spec)` then this will be `name + '@' + spec`.\n","readmeFilename":"README.md","gitHead":"e276ab22578d2e98b8f300ba020d988a4221af04","_id":"@zkochan/npm-package-arg@2.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-v42ycaFkH8tYQfxtmnxvMdC3zRB75lwPyfiRy2Rz7F2pv3gqAsSHXHUYbmU93SzjIiHLNtj5UhoYFZwkZP22yw==","shasum":"8f4d582be16532fc15313a6bc7f0066e1dc0abac","tarball":"https://registry.npmjs.org/@zkochan/npm-package-arg/-/npm-package-arg-2.0.0.tgz","fileCount":4,"unpackedSize":13752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerdQ2CRA9TVsSAnZWagAAYZ8P/1KbG30jjLYU4is8OaO+\n1fcqs4WYOLAuQ09YUrGW4lMVcwCCkp+dMqdgyKCjOsx/gZVmQd/sjkYVLMYy\n/X5ASVU2w8Z8VNA10aNGvZrlBfM3AqOParFbZZh36h3zis6J/TRb9TnQ8N4H\n8iPB88bPXTmCJ95qUg/Jttrllg08RifU9JbuHuIoDMAsmYEf9zX3tux6ThxE\ncDwCvKeOu7WVqSgcA368Brmfr7c2i7Il0nsJqbQgSd+tT5gSYXDTZlA7VbZl\nYbF+E4Se8X69jRMtjxbcdzeu8io9tR6aT6bDhsJ89ui9fmJEGCmpg7AeYv4H\ngDOliHFuWRj/kd4K29caGNkpOIoVnnAk1Sve3iRrWsIOh5mQFev5GDYeOUpB\n6GELaLq6x8Bo7HhsuBmQkhSjFZSJHogkHCct8LDcGPboF4mqBYGKJ5rv7uOy\nnrvdd6jVeYOB+K6RRjZirs8eeSunPoErgeZoqaSJLGJp7puvBFNs9vuUVxA6\nP/RvYw+DfU4oaYpyS3pGhh55BLvVYFxxUi/BgTZTPoITjmvmzvJww3jGwpJ3\n3u+Hh+QHB4Lvvx83J2Pcs+EkwXCzbWKrFb+P246c/GG3gbVu8xxEPaA4V8UN\nGSDVlxo7hZQ6gBgmG2eFNXN6OnLur9vvUoUbD1UyTgxmzq+De7ntkbRd8NNB\nRhf8\r\n=2eDu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGiM8tPlZrn93tMvWk21nB/Fp6gv+4UqcTtO34YHRfQAiA73NuGKImnfmW/G1nIh6GZovkjlNjcQoBOZUX67FL01Q=="}]},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-package-arg_2.0.0_1588450358461_0.5815261461184185"},"_hasShrinkwrap":false},"2.0.1":{"name":"@zkochan/npm-package-arg","version":"2.0.1","description":"Parse the things that can be arguments to `npm install`","main":"npa.js","engines":{"node":">=10.13"},"directories":{"test":"test"},"dependencies":{"hosted-git-info":"^4.0.1","semver":"^7.3.5","validate-npm-package-name":"^3.0.0"},"devDependencies":{"standard":"14.3.3","tap":"^14.10.7"},"scripts":{"test":"standard && tap -J --coverage test/*.js"},"repository":{"type":"git","url":"git+https://github.com/zkochan/npm-package-arg.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","bugs":{"url":"https://github.com/zkochan/npm-package-arg/issues"},"homepage":"https://github.com/zkochan/npm-package-arg","gitHead":"f48d6842409cf595b5da4f2031528e5a90ef97c6","_id":"@zkochan/npm-package-arg@2.0.1","_nodeVersion":"12.19.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-VvK3/jS9m/quSU970L5sZSvX9wmmhXnEu/GfffCz0/ZcMAUs471FFz2UJu56T/8N8hcKPODYuKHz8wL5xZZY3w==","shasum":"f969c9522f642c7d80e48cbeb909c1dec3216482","tarball":"https://registry.npmjs.org/@zkochan/npm-package-arg/-/npm-package-arg-2.0.1.tgz","fileCount":4,"unpackedSize":13799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWpgbCRA9TVsSAnZWagAAEX8P/iGnhnjC9vIYxKQ88PUe\nrLKRfT3noD2rrkVjByuG0pXfMmwOQ0eFQqdX00uiPqjb/2oeemZotfW315t4\nGnTq7KAy/yS1Xtq8EsyC5lSj+WC9gHW/O1r9ZUUBtGPwg3O1q6ap69L/ZhCK\nwgi7WFjiNTiHlXr8nYyA9ZOemdcD6ByZ4rhVkRoJV7n1ynuBtCMrMsVex5SW\nlns5BrVURFw6xYhwFRnaINk4XdBC40HZ5lrzgi1JSr917V0P0/8x+kj3AuZP\nZ86OGSlvD3G0h6ZQtL/9jdlgwOS8s6GONA+q8ikVRZKk5CNCpojrDOb/AWs1\nHa6XJ+AoEygLmxI/iavvSWTCMpziDyJqyvOKfoSWdnKGqofZPEwwr/p5urgH\nC3y2lN+zPk/Zq5FrhadeY9ddVIqDo0N72KCW1snJ3WnYDLywHu+xmk8w0y5G\n+NwMrepeQrheMWhoqIsT+l1CamGMzKlVkTfx2jq9VigmMuqEXmbTzerouFtK\nhhyUEL57RvATpnZ6rtaGr+nUHPwVd8hRNalVhbPJY5DL2sMIYc7hOc26FFpv\nm+Nt9uwqWa7Cvff0XdKxYBTR8YlpO89hcnWi90gxThzFubzXW0CMlt72+BX/\nGI+2owrHqAfMQKrpPSDXlW+QhLmLOrhyBdr1/IJlAsbAjmyfdraLnNjZtXaI\nrFWo\r\n=Z6jo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBi5bA+kqC2chjJguc4D/dyLl9sdpu2/kNtcuscaEZjFAiEAuXI4WmdJlW0aQ7bwQojgzRPdsOWwwXzHuu7poDsqSOs="}]},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-package-arg_2.0.1_1616549914843_0.2737856836052701"},"_hasShrinkwrap":false}},"readme":"# @zkochan/npm-package-arg\n\nParses package name and specifier passed to commands like `npm install` or\n`npm cache add`, or as found in `package.json` dependency sections.\n\n## EXAMPLES\n\n```javascript\nvar assert = require(\"assert\")\nvar npa = require(\"@zkochan/npm-package-arg\")\n\n// Pass in the descriptor, and it'll return an object\ntry {\n  var parsed = npa(\"@bar/foo@1.2\")\n} catch (ex) {\n  …\n}\n```\n\n## USING\n\n`var npa = require('@zkochan/npm-package-arg')`\n\n### var result = npa(*arg*[, *where*])\n\n* *arg* - a string that you might pass to `npm install`, like:\n`foo@1.2`, `@bar/foo@1.2`, `foo@user/foo`, `http://x.com/foo.tgz`,\n`git+https://github.com/user/foo`, `bitbucket:user/foo`, `foo.tar.gz`,\n`../foo/bar/` or `bar`.  If the *arg* you provide doesn't have a specifier\npart, eg `foo` then the specifier will default to `latest`.\n* *where* - Optionally the path to resolve file paths relative to. Defaults to `process.cwd()`\n\n**Throws** if the package name is invalid, a dist-tag is invalid or a URL's protocol is not supported.\n\n### var result = npa.resolve(*name*, *spec*[, *where*])\n\n* *name* - The name of the module you want to install. For example: `foo` or `@bar/foo`.\n* *spec* - The specifier indicating where and how you can get this module. Something like:\n`1.2`, `^1.7.17`, `http://x.com/foo.tgz`, `git+https://github.com/user/foo`,\n`bitbucket:user/foo`, `file:foo.tar.gz` or `file:../foo/bar/`.  If not\nincluded then the default is `latest`.\n* *where* - Optionally the path to resolve file paths relative to. Defaults to `process.cwd()`\n\n**Throws** if the package name is invalid, a dist-tag is invalid or a URL's protocol is not supported.\n\n## RESULT OBJECT\n\nThe objects that are returned by @zkochan/npm-package-arg contain the following\nkeys:\n\n* `type` - One of the following strings:\n  * `git` - A git repo\n  * `tag` - A tagged version, like `\"foo@latest\"`\n  * `version` - A specific version number, like `\"foo@1.2.3\"`\n  * `range` - A version range, like `\"foo@2.x\"`\n  * `file` - A local `.tar.gz`, `.tar` or `.tgz` file.\n  * `directory` - A local directory.\n  * `remote` - An http url (presumably to a tgz)\n* `registry` - If true this specifier refers to a resource hosted on a\n  registry.  This is true for `tag`, `version` and `range` types.\n* `name` - If known, the `name` field expected in the resulting pkg.\n* `scope` - If a name is something like `@org/module` then the `scope`\n  field will be set to `@org`.  If it doesn't have a scoped name, then\n  scope is `null`.\n* `escapedName` - A version of `name` escaped to match the npm scoped packages\n  specification. Mostly used when making requests against a registry. When\n  `name` is `null`, `escapedName` will also be `null`.\n* `rawSpec` - The specifier part that was parsed out in calls to `npa(arg)`,\n  or the value of `spec` in calls to `npa.resolve(name, spec).\n* `saveSpec` - The normalized specifier, for saving to package.json files.\n  `null` for registry dependencies.\n* `fetchSpec` - The version of the specifier to be used to fetch this\n  resource.  `null` for shortcuts to hosted git dependencies as there isn't\n  just one URL to try with them.\n* `gitRange` - If set, this is a semver specifier to match against git tags with\n* `gitCommittish` - If set, this is the specific committish to use with a git dependency.\n* `hosted` - If `from === 'hosted'` then this will be a `hosted-git-info`\n  object. This property is not included when serializing the object as\n  JSON.\n* `raw` - The original un-modified string that was provided.  If called as\n  `npa.resolve(name, spec)` then this will be `name + '@' + spec`.\n","maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"time":{"modified":"2022-04-11T11:57:28.164Z","created":"2017-11-18T22:53:51.597Z","1.0.0":"2017-11-18T22:53:51.597Z","1.0.1":"2018-11-28T21:35:57.870Z","1.0.2":"2019-03-31T17:44:10.938Z","2.0.0":"2020-05-02T20:12:38.586Z","2.0.1":"2021-03-24T01:38:34.999Z"},"homepage":"https://github.com/zkochan/npm-package-arg","repository":{"type":"git","url":"git+https://github.com/zkochan/npm-package-arg.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"bugs":{"url":"https://github.com/zkochan/npm-package-arg/issues"},"license":"ISC","readmeFilename":"README.md"}