Canonical: https://weaveos.com/reference/npm/inspect-package-version-metadata

1. [Software capabilities](https://weaveos.com/reference)
2. /[npm](https://weaveos.com/reference/npm)
3. /Inspect metadata for a version of an npm package

[![](https://weaveos.com/reference/logos/npm.svg)npm](https://weaveos.com/reference/npm)

# Inspect metadata for a version of an npm package

Use npm view to inspect one package version without installing it. Use the registry response when comparing metadata across versions or building a package lookup.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1CLI: npm view \<package>@\<version> \<field>](https://weaveos.com/reference/npm/inspect-package-version-metadata#method-1)
2. [2API: GET /{package}](https://weaveos.com/reference/npm/inspect-package-version-metadata#method-2)

CLI

### npm view \<package>@\<version> \<field>

Query version-specific fields such as dependencies, engines, or dist.tarball.

[Read source: npm view command reference](https://docs.npmjs.com/cli/npm-view/)

- Requirements

  The npm CLI, the package name and version, and access to the configured registry.

- Limitations

  Leaving out the version selects the latest distribution tag. Add --json when another program needs to read the result.

Example shell

Copy

```
npm view is-number@7.0.0 engines --json
```

API

### GET /{package}

Fetch the full registry package document and select versions\[version] for the release you need.

[Read source: npm registry package metadata format](https://github.com/npm/registry/blob/main/docs/responses/package-metadata.md)

- Requirements

  A package name and access to the npm registry. Public packages can be read without a token.

- Limitations

  The abbreviated install representation omits some metadata. Request the full JSON response when you need complete version records.

Example shell

Copy

```
curl --fail -H 'Accept: application/json' https://registry.npmjs.org/is-number
```

## More from npm

[View all 1 npm tasks](https://weaveos.com/reference/npm)
