pnpm view

Aliases: info, show, v

Перегляд метаданих пакунка з реєстру.

pnpm view [<pkg>]
pnpm view <pkg> [field...]

Використання#

Показати всі метадані пакунка:

pnpm view express

The summary ends with the registry the metadata was read from. If a version is missing or a dist-tag points to an older version, check whether that registry is a mirror that has not synced yet.

Показати певне поле:

pnpm view express version
pnpm view express dependencies
pnpm view express dist-tags

Several fields and dotted paths are accepted:

pnpm view express dist.tarball version

Показати метадані для певної версії:

pnpm view express@4.18.0

Якщо назва пакунку не вказана, команда pnpm view шукає найближчий маніфест проєкту (package.json, package.yaml або package.json5) у теці верхнього рівня та використовує його поле name. Якщо маніфест існує але не маж name, команда завершиться з помилкою. To select fields, name the package: the first argument is always the package, so pnpm view version looks up a package named version.

Show the release notes of a version, and of the release that published it, from a registry that stores them, such as pnpr:

pnpm view express@4.18.0 releaseNotes

pnpm prints notes as plain text. It removes control and bidirectional override characters and shows each link's target next to its text.

Параметри#

--json#

Вивести метадані у форматі JSON.

--registry <url>#

The registry to read the metadata from. Стандартним значенням є типовий налаштований реєстр.