Files
2026-08-27 21:09:14 +00:00

71 lines
1.3 KiB
Plaintext

---
title: "bun info"
description: "Display package metadata from the npm registry"
---
`bun info` displays package metadata from the npm registry.
## Usage
```bash terminal icon="terminal"
bun info react
```
`bun info react` prints the package's latest version, description, homepage, dependencies, and other metadata.
## Viewing specific versions
To view information about a specific version:
```bash terminal icon="terminal"
bun info [email protected]
```
## Viewing specific properties
To print specific properties from the package metadata:
```bash terminal icon="terminal"
bun info react version
bun info react dependencies
bun info react repository.url
```
## JSON output
To get the output in JSON format, use the `--json` flag:
```bash terminal icon="terminal"
bun info react --json
```
## Alias
`bun pm view` is an alias for `bun info`:
```bash terminal icon="terminal"
bun pm view react # equivalent to: bun info react
```
## Examples
```bash terminal icon="terminal"
# View basic package information
bun info is-number
# View a specific version
bun info [email protected]
# View all available versions
bun info is-number versions
# View package dependencies
bun info express dependencies
# View package homepage
bun info lodash homepage
# Get JSON output
bun info react --json
```