mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
## Summary Updated all example version placeholders in documentation from 1.3.1 and 1.2.20 to 1.3.2. ## Changes Updated version examples in: - Installation examples (Linux/macOS and Windows install commands) - Package manager output examples (`bun install`, `bun publish`, `bun pm` commands) - Test runner output examples - Spawn/child process output examples - Fetch User-Agent header examples in debugging docs - `Bun.version` API example ## Notes - Historical version references (e.g., "As of Bun v1.x.x..." or "Bun v1.x.x+ required") were intentionally **preserved** as they document when features were introduced - Generic package.json version examples (non-Bun package versions) were **preserved** - Only example outputs and code snippets showing current Bun version were updated ## Files Changed (13 total) - `docs/installation.mdx` - `docs/guides/install/from-npm-install-to-bun-install.mdx` - `docs/guides/install/add-peer.mdx` - `docs/bundler/html-static.mdx` (6 occurrences) - `docs/test/dom.mdx` - `docs/pm/cli/publish.mdx` - `docs/pm/cli/pm.mdx` - `docs/guides/test/snapshot.mdx` (2 occurrences) - `docs/guides/ecosystem/nuxt.mdx` - `docs/guides/util/version.mdx` - `docs/runtime/debugger.mdx` (3 occurrences) - `docs/runtime/networking/fetch.mdx` - `docs/runtime/child-process.mdx` **Total:** 23 version references updated 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Michael H <git@riskymh.dev>
24 lines
546 B
Plaintext
24 lines
546 B
Plaintext
---
|
|
title: Get the current Bun version
|
|
sidebarTitle: Get Bun version
|
|
mode: center
|
|
---
|
|
|
|
Get the current version of Bun in a semver format.
|
|
|
|
```ts index.ts icon="/icons/typescript.svg"
|
|
Bun.version; // => "1.3.2"
|
|
```
|
|
|
|
---
|
|
|
|
Get the exact `git` commit of [`oven-sh/bun`](https://github.com/oven-sh/bun) that was compiled to produce this Bun binary.
|
|
|
|
```ts index.ts icon="/icons/typescript.svg"
|
|
Bun.revision; // => "49231b2cb9aa48497ab966fc0bb6b742dacc4994"
|
|
```
|
|
|
|
---
|
|
|
|
See [Docs > API > Utils](https://bun.com/docs/api/utils) for more useful utilities.
|