Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

latest-version

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Issues
File Explorer

Advanced tools

latest-version

Get the latest version of an npm package

    7.0.0latest

Version published
Maintainers
1
Weekly downloads
6,383,708
decreased by-19.44%

Weekly downloads

Changelog

Source

Breaking

  • Require Node.js 14 75682c2

https://github.com/sindresorhus/latest-version/compare/v6.0.0...v7.0.0

Readme

Source

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')); //=> '0.18.0' console.log(await latestVersion('@sindresorhus/df')); //=> '1.0.1' // Also works with semver ranges and dist-tags console.log(await latestVersion('npm', {version: 'latest-5'})); //=> '5.5.1'
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Keywords

FAQs

What is latest-version?

Get the latest version of an npm package

Is latest-version popular?

The npm package latest-version receives a total of 5,397,689 weekly downloads. As such, latest-version popularity was classified as popular.

Is latest-version well maintained?

We found that latest-version demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 23 Jun 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc