Skip to main content

Get the current Bun version

还没翻译译自英文(bun.com)本页 4 段都还没译

Bun.version contains the current version of Bun in semver format.

Bun.version; // => "1.3.3"

Bun.revision contains the exact git commit of oven-sh/bun that was compiled to produce this Bun binary.

Bun.revision; // => "49231b2cb9aa48497ab966fc0bb6b742dacc4994"

See Utils.

译文 © 2026 fanyi.dev · 原文 © 2026 the Bun project (LICENSE.md names no copyright holder) (MIT)