9.0.0 • Published 2 months ago

latest-version v9.0.0

Weekly downloads
8,176,485
License
MIT
Repository
github
Last release
2 months ago

latest-version

Get the latest version of an npm package

Fetches the version directly from the registry instead of depending on the massive npm module like the latest module does.

Install

npm install latest-version

Usage

import latestVersion from 'latest-version';

console.log(await latestVersion('ava'));
//=> '6.1.1'

console.log(await latestVersion('@sindresorhus/df'));
//=> '4.0.0'

// Also works with semver ranges and dist-tags
console.log(await latestVersion('npm', {version: 'latest-5'}));
//=> '5.10.0'

This package exposes the version, registryUrl, and omitDeprecated options from package-json, as well as the PackageNotFoundError and VersionNotFoundError errors.

Related

update-notifiereog_seog_xx@microsoft/botframework-cli@uukit/scripts@ilscc/mrm-presetarchetype-librarydiscordrpcmaker@redwoodjs/clieasy-select-rnreact-native-bluetooth2killi8n-react-native-fast-imagexuirecorderplus@acmilank22/generator-configs@seasketch-sls-geoprocessing/packagingcn-luis-apispxrepo-testvtex3@sirius-black/taro-cliac-crm-clitie-init@cashremit/cr-streamline-icons@s2click/venomgenerator-wgoehrig-testllong-climultisig-servereasy-vue-cli@donniean/generator-configselmenoufi-api-whatsapi_whats_elmenoufivitepress-dg-cliairscanairscan-examplerxtd-cli@joaosouz4/venom-botreact-native-esc-pos-sahaabgenerator-test-connectorgenerator-test2-connector2generator-test3-connector3test2-generator-connector@borisovart/atol-kkt-modulecdfinance-clideneme323112@ntt_app/react-native-custom-notification@faros-ai/clisxyj_taro_cli@ubaid-desynova/playerdiscord-music-botsreact-native-covid-sdkis-package-deprecatedrennialitchi-mp-clifragrans-clifrag-clisparrow-bird-serverspruce-cli@saeon/quick-formlaor-clilbb-cli@bugsounet/npmcheckmindv-clijbimysql-formatnpm-packages-clipack-clireact-native-printer-brothersrli-clireact-native-shekhar-bridge-testcogoportutilsyan-element-uuuudyx-reactfaros-cli@oiti/documentoscopy-react-nativequoc-testmarvolo-botmarvolo-upunblock-block-save-variablesdependency-comparatorbabel7-upgrade@prodam/prodam-typesths-cliluminos-ui-coregatsbysl-commands@everything-registry/sub-chunk-2047jawwy-sdkjawwy_gamification_releasemy-pack-vue-climy-vue-vite-clizmy-clireact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_sampleember-applyember-cli-createember-addon-migratorduet-telegrameasy-cli2
9.0.0

2 months ago

8.0.0

3 months ago

7.0.0

2 years ago

6.0.0

3 years ago

5.1.0

5 years ago

5.0.0

5 years ago

4.0.0

6 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago