{"name":"latest-version","version":"5.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":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["latest","version","npm","pkg","package","package.json","current","module"],"dependencies":{"package-json":"^6.1.0"},"devDependencies":{"ava":"^1.3.1","semver":"^5.6.0","semver-regex":"^2.0.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"4126f4c050d81188e750f646f62ec5f7f040d0fd","bugs":{"url":"https://github.com/sindresorhus/latest-version/issues"},"homepage":"https://github.com/sindresorhus/latest-version#readme","_id":"latest-version@5.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-6iCsjOzw7o6Ebe0xh6h7PhfRLIeh52i+xzXVo114tQEvAEVVrzCRIxUWQzflhhYWvF7acxyqok7EFrKD9qScoQ==","shasum":"04bc651abd4b921c6a78879db52cbb140dbd818f","tarball":"http://registry-npm.ywwl.com/latest-version/download/latest-version-5.0.0.tgz","fileCount":5,"unpackedSize":3567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch978CRA9TVsSAnZWagAANo8P/0nodi+hiVY1qYhFMnoY\nibUTVy2z9M/E8E50uZX7XooEhz7xqq+PWYeh6xDallQFLWekO1j1SO/BuQdL\njV/Fh89S+w1juBjtVo/YP+LlHsK3ZH8SVEBkdkUlVbajjPYFjyDx0oSN1/fT\n8ADr2r/PNWLgkHz7MwUpGfh6WmV4nbMatbCpw2oEhkgPHw9yHM9TXgdBp5Oc\nFAor/FkS9DgKwhL5a9t7OPAsZ1SRaZfubXfII161uqM9ChwnpU1GqwZVmMGc\nlLD5ZH337R93zQTvNj3EclhYht/YAWJaBGl4AN0/ykwYYVPZXNwAY1eIaTZY\n0JOFI9VNRAh9N1waAhopQdBQEkdgErt2Hp/ohpnNDAbGmbHGzmTSsOowrAps\nOR6WzAh0GTJwrJSlOclsRoN4NpQC/XxWu0mrEBe0pMcqXZjabh1b+nkT/nb2\nMqGdNSZVWMcoV4iTThBe/tzOuIcP+f+00+NRg1N6L6UNAcv/szENjRn4gBZt\njlIlTMX7lgM+59s577gigJ0RrDa9QgfhqZA4i1y4VUS9bX+dCTInRYwxEhvb\noiKG+h44U5VLL+d9f6t9d+rgBYtgmExoy3NX2SVSc8sPKleT7WYlu1H/w9rx\nrjtGf07Ya/g8hAHrTMVm3PncYUi3QySE4O2D0rCJASCJthHFYCGNMcJpHs2x\nPluU\r\n=wkWT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGujOO1WfX8a/kfJ92ipXW5tL4w/LRaXgs/ADblk1mleAiB0w6vMUxq+IVEYiN4MyD7X2HVVSSEtvBV0eSXDKp1AUw=="}],"size":1904,"noattachment":false,"key":"/latest-version/-/latest-version-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/latest-version_5.0.0_1552408315852_0.2114022830194484"},"_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":1552408316039,"_cnpm_publish_time":1552408316039,"dist-tags":{"latest":"9.0.0"}}