Installations
npm install packument-package
Developer Guide
Typescript
No
Module System
N/A
Min. Node Version
>=10
Node Version
16.9.1
NPM Version
7.21.1
Score
63.6
Supply Chain
82.7
Quality
74.6
Maintenance
100
Vulnerability
99.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
vweevers
Download Statistics
Total Downloads
768,602
Last Day
1
Last Week
3
Last Month
29
Last Year
367
GitHub Statistics
2 Stars
10 Commits
1 Watching
2 Branches
1 Contributors
Bundle Size
30.97 kB
Minified
9.79 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
768,602
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
packument-package
Fetch package metadata of a version from the npm registry. If you need metadata of all versions, use packument
.
example
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})
install
With npm do:
npm install packument-package
license
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
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
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/vweevers/packument-package/test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/vweevers/packument-package/test.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/test.yml:19
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/test.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 3 are checked with a SAST tool
Score
3.8
/10
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