A Node.js library for fetching npm registry metadata (packuments) for a given package name. Version 2.0.0 supports scoped packages, private registries, and both abbreviated and full metadata formats. The API is callback-based with a factory pattern for preconfiguration. It is lightweight with zero dependencies. Useful for tools that need to inspect package metadata without relying on npm CLI. Maintained by Vincent Weevers.
npm install packumentNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Fetches the packument for a given package name (e.g., 'express') and prints the latest version and its license.
Require full metadata by passing { full: true } as options.Wrap with util.promisify or use a promise-based alternative like pacote.
Set appropriate proxy settings or configure headers with custom agent.
Check the response headers in opts via the 'response' event if needed.
Use const packument = require('packument');Check network connectivity, or configure a custom timeout and retry logic.
Use callback or promisify the function.
No dependency data recorded yet.