{"name":"latest-version","version":"5.1.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"},"keywords":["latest","version","npm","pkg","package","package.json","current","module"],"dependencies":{"package-json":"^6.3.0"},"devDependencies":{"ava":"^1.4.1","semver":"^6.0.0","semver-regex":"^2.0.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"9d0f0b115870a11372f0382e24c5658a6bf1da3a","bugs":{"url":"https://github.com/sindresorhus/latest-version/issues"},"homepage":"https://github.com/sindresorhus/latest-version#readme","_id":"latest-version@5.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==","shasum":"119dfe908fe38d15dfa43ecd13fa12ec8832face","tarball":"http://registry-npm.ywwl.com/latest-version/download/latest-version-5.1.0.tgz","fileCount":5,"unpackedSize":4292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpXjlCRA9TVsSAnZWagAAlwcP/00cwemgwzkPK6dEOwp1\nO9oZd5SIx1dC4wuhCw3ZkU/QUolHSUYtZK4IbHrNpS4MFXr0ndOTnlR6lFkk\nc1k0dOVZDi8at/+P7r6VQeqDS+xytZZ0UpX7yCp8G0eQCmqhdxw/9lKDIqv4\nx0eOpVgG6LOFI/HPS8ERUoJX5KORB40iD/XdajttPE2JgqwElTkZZHvRsGS0\nq3N8+iqVnb/ZFcMUMDhaRQckRpcl1rfHlVB9KcYuMtcr4qJRypyJeUBlibbd\nqox4vGJSgIcgPAvt4GIMy6TM/gWpA3aV5oQSj3lI9zx3EHUi+AcgxkGmT6Bu\n8BvHMnbM8xtWZVdVZYcE1/JwaT5W6owjRKE0OP6rvwpzOtL0PG30aO9e/brI\nw8hkdm3Fc/TX0M1rSeyV1pWnbaHCW8S87rwGoO522HINdMNUsIU4zcPsxDSi\nvBi/lS47wjm5UDmWNAgUy0HTt5vKNUv4goHjYez8kK84+l6lL2DfRNPON4LG\nZ+OYFxYSzFInzoTDJ/nuJHyFoz6Fy2ZlIhUw0DnPruHC1vqf4C0JM9BE8aZK\nv/R4H6QsvTySGZTQutmvZdU5Jr+1gTX9EHa+CNvFjElrImgnQeNgKezCnnTz\nKfO5CnzCztppu5q+GxgK9EMiBOshn+jsj8pzB6lLdyOim6t87qlxr9zqv86U\nspGl\r\n=V/hf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBR1q98UrBiuRiUKu3pjpjSPbOVHmJ7BuTuO5yA1yTNJAiBmrtiKAfvtCENhN6hua5Nx9Pl2iAXEFpRms2wWwaNajw=="}],"size":2055,"noattachment":false,"key":"/latest-version/-/latest-version-5.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/latest-version_5.1.0_1554348260627_0.8781458674727018"},"_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":1554348260779,"_cnpm_publish_time":1554348260779,"dist-tags":{"latest":"9.0.0"}}