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. 기본값은 구성된 기본 레지스트리입니다.