Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
latest-version
Advanced tools
Weekly downloads
Readme
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.
npm install latest-version
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.
FAQs
Get the latest version of an npm package
The npm package latest-version receives a total of 5,248,320 weekly downloads. As such, latest-version popularity was classified as popular.
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.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.