{"name":"latest-version","version":"4.0.0","description":"Get the latest version of an npm package","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/latest-version.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["latest","version","npm","pkg","package","package.json","current","module"],"dependencies":{"package-json":"^5.0.0"},"devDependencies":{"ava":"*","semver":"^5.4.1","semver-regex":"^2.0.0","xo":"*"},"gitHead":"9644131e0878181be89d4f546ef19905e283fdd7","bugs":{"url":"https://github.com/sindresorhus/latest-version/issues"},"homepage":"https://github.com/sindresorhus/latest-version#readme","_id":"latest-version@4.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-b4Myk7aQiQJvgssw2O8yITjELdqKRX4JQJUF1IUplgLaA8unv7s+UsAOwH6Q0/a09czSvlxEm306it2LBXrCzg==","shasum":"9542393ac55a585861a4c4ebc02389a0b4a9c332","tarball":"http://registry-npm.ywwl.com/latest-version/download/latest-version-4.0.0.tgz","fileCount":4,"unpackedSize":3089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbG9LnCRA9TVsSAnZWagAAoLoP/0X1PvtY1B7OLvHaVUnm\nT7p8SajasOVf2cRDSAIxLnOW0vKioLzy3Vz9cN+Zp6tpUfsDuKpd7GzULxvr\nk10mLlLYVyeQGSYwYkwe9Gn6ZKhCCSVVEumT5KnttXwqewvz1yGF8utAeSqV\n10K8okeTfSkW045z5DKAEpagXVf9b4cUdsXfxEsaRIQppfWxJZ3SX82m1VZK\nH7vPqCtcfp02X2X3WmtdlbBgiYU7KFe75pQAlCca3ub/AzCY03VIiuR5xwYP\nTceNCtyReWZAIuPhfXIeUhbdCqIxvDymw39HPmF306KOrszcezMl9A4oTdhU\nMZNlqcPE4s7ErxEwkcxwWkAh1kXryT2lBI3Yz8gCYlg5j9ZjKHrGO6WSr7Y2\nA1gEEkZCy2zf7Xksy64cLayvOtyfaXJgJB1/HVDGyZS1rxdyXPcIdy4g7f0x\n3qVg3G6ylpZttQQsgyAHHItfmFv2KAAxy/teylozPtXrIInnL3ma64WZYwuU\nwmRpPyuD1TaJz6T20uWQYyyxeMvz12Cxsi008TUDjjqcVa4rekIkpxrMVUdC\nG0EWiPw7gprx+TJI2P0W7unfapBdnNOlvKGyrUmBCr4TJy5v6V8f2zJoRGEF\nQIPgpx37ztWLM1h5OJJfMbE75DsVWz9zzoYNX8cxJhDgeA+NYpPtP1xDdHIe\n/hIr\r\n=1/pd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6KigGS+6+poYIv0SRVGLIPk8TZCUC6pypXyTGY8FxZgIhANVYHVQUnHmbhGcaSrR787fLj1vGD2NHtzG28mQoE45y"}],"size":1716,"noattachment":false,"key":"/latest-version/-/latest-version-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/latest-version_4.0.0_1528550119151_0.45115227361449994"},"_hasShrinkwrap":false,"readme":"# latest-version\n\n> Get the latest version of an npm package\n\nFetches the version directly from the registry instead of depending on the massive [npm](https://github.com/npm/npm/blob/8b5e7b6ae5b4cd2d7d62eaf93b1428638b387072/package.json#L37-L85) module like the [latest](https://github.com/bahamas10/node-latest) module does.\n\n## Install\n\n```sh\nnpm install latest-version\n```\n\n## Usage\n\n```js\nimport latestVersion from 'latest-version';\n\nconsole.log(await latestVersion('ava'));\n//=> '6.1.1'\n\nconsole.log(await latestVersion('@sindresorhus/df'));\n//=> '4.0.0'\n\n// Also works with semver ranges and dist-tags\nconsole.log(await latestVersion('npm', {version: 'latest-5'}));\n//=> '5.10.0'\n```\n\nThis package exposes the [`version`](https://github.com/sindresorhus/package-json#version), [`registryUrl`](https://github.com/sindresorhus/package-json#registryurl), and [`omitDeprecated`](https://github.com/sindresorhus/package-json#omitdeprecated) options from [`package-json`](https://github.com/sindresorhus/package-json#options), as well as the [`PackageNotFoundError`](https://github.com/sindresorhus/package-json#packagenotfounderror) and [`VersionNotFoundError`](https://github.com/sindresorhus/package-json#versionnotfounderror) errors.\n\n## Related\n\n- [latest-version-cli](https://github.com/sindresorhus/latest-version-cli) - CLI for this module\n- [package-json](https://github.com/sindresorhus/package-json) - Get the package.json of a package from the npm registry\n","publish_time":1528550119237,"_cnpm_publish_time":1528550119237,"dist-tags":{"latest":"9.0.0"}}