This repository has been archived on 2026-03-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dsabot/node_modules/latest-version
2020-03-21 03:37:31 +01:00
..
2020-03-21 03:37:31 +01:00
2020-03-21 03:37:31 +01:00
2020-03-21 03:37:31 +01:00
2020-03-21 03:37:31 +01:00

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 --save latest-version

Usage

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

latestVersion('ava').then(version => {
	console.log(version);
	//=> '0.18.0'
});

latestVersion('@sindresorhus/df').then(version => {
	console.log(version);
	//=> '1.0.1'
});

License

MIT © Sindre Sorhus