Gathering detailed insights and metrics for packument-package
Gathering detailed insights and metrics for packument-package
npm install packument-package
Typescript
Module System
Min. Node Version
Node Version
NPM Version
63.6
Supply Chain
82.7
Quality
74.6
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
768,602
Last Day
1
Last Week
3
Last Month
29
Last Year
367
2 Stars
10 Commits
1 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
packument-package@2.0.0
Unpacked Size
4.99 kB
Size
2.22 kB
File Count
4
NPM Version
7.21.1
Node Version
16.9.1
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-66.7%
3
Compared to previous week
Last month
70.6%
29
Compared to previous month
Last year
-11.4%
367
Compared to previous year
Fetch package metadata of a version from the npm registry. If you need metadata of all versions, use packument
.
1const getPackage = require('packument-package') 2 3// Defaults to latest 4getPackage('levelup', function (err, pkg) { 5 if (err) throw err 6 console.log(pkg.version) 7}) 8 9getPackage('levelup', '~2.0.0', function (err, pkg) { 10 if (err) throw err 11 console.log(pkg.version) 12})
getPackage(name[, version || opts], callback)
Callback receives an error if any, a package object and response headers. Options:
version
: either a dist tag (latest
), version (1.2.3
) or range (~1.2.3
).Other options are passed to packument
.
getPackage = getPackage.factory(packument, opts)
Preconfigure the function. Useful for setting defaults or adding a cache:
1const memoize = require('thunky-with-args') 2const packument = memoize(require('packument').factory({ keepAlive: true })) 3const getPackage = require('packument-package').factory(packument) 4 5getPackage('levelup', '~2.0.2', (err, pkg) => { 6 // It will make only one request 7}) 8 9getPackage('levelup', '^1.3.0', (err, pkg) => { 10 // Subsequent calls for the same package are cached 11})
With npm do:
npm install packument-package
MIT © Vincent Weevers
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/7 approved changesets -- 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
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-27
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