Skip to main content

Documentation Index

Fetch the complete documentation index at: https://bun.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

To add an npm package as a development dependency, use bun add --development.
terminal
bun add zod --dev
bun add zod -d # shorthand

This will add the package to devDependencies in package.json.
{
  "devDependencies": {
    "zod": "^3.0.0"
  }
}

See Docs > Package manager for complete documentation of Bun’s package manager.