{"name":"latest-version","version":"7.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":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["latest","version","npm","pkg","package","package.json","current","module"],"dependencies":{"package-json":"^8.1.0"},"devDependencies":{"ava":"^4.3.0","semver":"^7.3.7","semver-regex":"^4.0.5","tsd":"^0.21.0","typescript":"^4.7.4","xo":"^0.50.0"},"types":"./index.d.ts","gitHead":"b79a0ceb9997f8ceb5078626a64001b7b88799fa","bugs":{"url":"https://github.com/sindresorhus/latest-version/issues"},"homepage":"https://github.com/sindresorhus/latest-version#readme","_id":"latest-version@7.0.0","_nodeVersion":"18.3.0","_npmVersion":"8.3.2","dist":{"integrity":"sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==","shasum":"843201591ea81a4d404932eeb61240fe04e9e5da","tarball":"http://registry-npm.ywwl.com/latest-version/download/latest-version-7.0.0.tgz","fileCount":5,"unpackedSize":4127,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeiZN9caR0kGpWFV5Jo7dBbBMbqj3QT8b9a48XJrD+gwIgYexxRktBD1gh992WVEXyS5JRkGfKoph2Nfrm/nGW5yU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitGNhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqagA/8DMTjkJZUuyd9I7IYOqRnugS/kqt7ZiGe49/Oel1UcaMLJfuK\r\nZKv1CI524eWlttqywPqVsGiY4b8EdhiBFqSYbDMNbQRxLfOENaf+/TBcp6OH\r\nLkmDu2qSIFytaRyMD7+cGalM8ZPNNi2dkEnElfLPTOb1V1xlOZcXMgPH/p/i\r\neRabkUnVIuBYVo3LrB4ldmCKWdyjsVZKA7VoIoUXGHHN//eM5C7g5rAgH/hq\r\nx/s9RluMQB6vYPDCUX67Q3b9Ha/0tptTPf5O5GBMK40VR9D6Q8DzPE6MVpxo\r\nuvQcIPzFtdgod/KzweIrpq3goMKefUR5t9aLVifEcQ6c3Ykfu52MjPkKUU76\r\no15efJLTYU2cowtH5nx2F2pTMoeurIdQOrDcYLXvOwrR7RmDX2OV3g7I45M6\r\nN3SteQ4wShypPNYh/WPAcmi0IQ+jvj/uUUdl2ktBNnpNhZ/gDTAYT4VUQSnj\r\nI6uv2B/cXI1rzq51MlrVbaDQukVgvdIiJ/1YEnRK39wMWuD2tAOkgirGk4G6\r\nWrXA1OGivqspT3z6ehz8hRgqXvgsbFdY9A0WL4Y0KSlW9qXUXrPv3j+iZyEo\r\nH3H1EPXBhHF73CA8tsM8c7xwJJauq+yXwHJelAyX7ByNrdAvmfms4XljyCt0\r\nXPNXl8T6IN1bioDKrQG7+/o5+z/w+9f1HQY=\r\n=lpVk\r\n-----END PGP SIGNATURE-----\r\n","size":2055,"noattachment":false,"key":"/latest-version/-/latest-version-7.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_7.0.0_1655989088800_0.3989164028268477"},"_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":1655989089021,"_cnpm_publish_time":1655989089021,"dist-tags":{"latest":"9.0.0"}}