latest-version

WebJar for latest-version

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

latest-version
Last Version

Last Version

5.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

latest-version
WebJar for latest-version
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/latest-version

Download latest-version

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/latest-version/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>latest-version</artifactId>
    <version>5.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/latest-version/
implementation 'org.webjars.npm:latest-version:5.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/latest-version/
implementation ("org.webjars.npm:latest-version:5.1.0")
'org.webjars.npm:latest-version:jar:5.1.0'
<dependency org="org.webjars.npm" name="latest-version" rev="5.1.0">
  <artifact name="latest-version" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='latest-version', version='5.1.0')
)
libraryDependencies += "org.webjars.npm" % "latest-version" % "5.1.0"
[org.webjars.npm/latest-version "5.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : package-json jar [6.3.0,7)

Project Modules

There are no modules declared in this project.

latest-version Build Status

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

const latestVersion = require('latest-version');

(async () => {
	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'
})();

Related


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.

Versions

Version
5.1.0
3.1.0
3.0.0
2.0.0
1.0.1