Gathering detailed insights and metrics for latest-version
Gathering detailed insights and metrics for latest-version
Gathering detailed insights and metrics for latest-version
Gathering detailed insights and metrics for latest-version
npm install latest-version
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
177 Stars
50 Commits
22 Forks
11 Watching
1 Branches
9 Contributors
Updated on 07 Nov 2024
JavaScript (79.69%)
TypeScript (20.31%)
Cumulative downloads
Total Downloads
Last day
-11%
1,343,935
Compared to previous day
Last week
1.8%
8,298,120
Compared to previous week
Last month
17.9%
33,111,929
Compared to previous month
Last year
-11.1%
329,223,891
Compared to previous year
1
5
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.
1npm install latest-version
1import latestVersion from 'latest-version'; 2 3console.log(await latestVersion('ava')); 4//=> '6.1.1' 5 6console.log(await latestVersion('@sindresorhus/df')); 7//=> '4.0.0' 8 9// Also works with semver ranges and dist-tags 10console.log(await latestVersion('npm', {version: 'latest-5'})); 11//=> '5.10.0'
This package exposes the version
, registryUrl
, and omitDeprecated
options from package-json
, as well as the PackageNotFoundError
and VersionNotFoundError
errors.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 8/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More