LinuxCommandLibrary

npm-view

shows package registry information

TLDR

View package info
$ npm view [package]
copy
View specific field
$ npm view [package] [version]
copy
View all versions
$ npm view [package] versions
copy
View dependencies
$ npm view [package] dependencies
copy
JSON output
$ npm view [package] --json
copy
View dist-tags
$ npm view [package] dist-tags
copy

SYNOPSIS

npm view [package] [field]

DESCRIPTION

npm view shows package registry information. Displays metadata from npm.
The command queries registry. Shows versions, dependencies, and more.

PARAMETERS

PACKAGE

Package name.
FIELD
Field to display.
versions
All versions.
dependencies
Package deps.
--json
JSON output.
--help
Display help information.

CAVEATS

Alias: npm info, npm show. Network required. Registry data.

HISTORY

npm view provides registry inspection for package metadata and versions.

SEE ALSO

npm(1), npm-search(1), npm-pack(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard