{"name":"latest-version","version":"6.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"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12.20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["latest","version","npm","pkg","package","package.json","current","module"],"dependencies":{"package-json":"^7.0.0"},"devDependencies":{"ava":"^3.15.0","semver":"^7.3.5","semver-regex":"^4.0.0","tsd":"^0.17.0","xo":"^0.42.0"},"gitHead":"a15d51093a674c638c80c85babdf7bdad878fc2d","bugs":{"url":"https://github.com/sindresorhus/latest-version/issues"},"homepage":"https://github.com/sindresorhus/latest-version#readme","_id":"latest-version@6.0.0","_nodeVersion":"14.16.1","_npmVersion":"7.10.0","dist":{"integrity":"sha512-zfTuGx4PwpoSJ1mABs58AkM6qMzu49LZ7LT5JHprKvpGpQ+cYtfSibi3tLLrH4z7UylYU42rfBdwN8YgqbTljA==","shasum":"469fb95f1d588b38436c1ec8fec947b99ed268c7","tarball":"http://registry-npm.ywwl.com/latest-version/download/latest-version-6.0.0.tgz","fileCount":5,"unpackedSize":4102,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+U+dCRA9TVsSAnZWagAAN8EP/0Dns/F9Ah7iChm15PYk\naWXKbWP29hfbXm1hum1K4AEudWohZrVKYzX5h1oGCcN4mdE3K48XeaYqKUb6\nKioQqkbsPWMddkrmz8iprkZ6NzKuOEnLf8rW9LXgK0f9RrsxnaXLNrnbNl/w\nu7YyemYQQC2IV6hq+ds4a60GT3FrI4R1joYM/UeQcRhV1p6ROxt6FjXzpHnP\nO9haCA8cemOe4BgVQIa8gdD0k1W8QCztoZR6t/3B/QJYMDPC0jlzR8TsDDkX\nulcmCVtb0X8JC2VLob/K31Rm1FtEbtmAbfX3III983I9WZRZGDVi6zPWP6Ne\nOIlaHlPDJ0qjOIMpaTYVlMOVuHeWA1dzAhFa4E0TLTvWR4h+Ysxr6LjPoUVH\n6D8+u739Fo4YgkOrtwIPhsi8kscFZgHt++YR9VfQEuvc8BZDnHWNI6Gr6IjX\nJVwP7yVnlKAjbBP4rz8aajkTXKgs6kvAaNb4ESrDnkRH1ew9VieceZz/d25g\nGdxW9ztITRNptekkx0dDoORFhG0EhQgstx3nQEpHtkVw2EgpsPXK/DBGNpDM\nnqc1rDr92x5tjppbLslBJ23wMc2UBgN5nLNPvwK+jr20XXrMmCU5AzIRbjO3\nC7Zp5OJxj0Aklrc/GzQFBy+WBT1Mo8rvpSOVvCsZJIf2FKWv3NxmKozEqtXz\nCysW\r\n=CJtD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSkPYi5ZXNHN5y/oKUJn9j6oEqiBySFKoMR/m0yh/PSwIgbzJUkrc93UCNfn7wKdWfnQH5YHchXgAZ7hZ7Zd+MF5E="}],"size":2045,"noattachment":false,"key":"/latest-version/-/latest-version-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/latest-version_6.0.0_1626951581829_0.37111883295125647"},"_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":1626951581990,"_cnpm_publish_time":1626951581990,"dist-tags":{"latest":"9.0.0"}}