Guides · Utilities
Get the current Bun version
Read the running Bun version from Bun.version and the exact git commit from Bun.revision.
Bun.version contains the current version of Bun in semver format.
index.ts
Bun.version; // => "1.3.3"
Bun.revision contains the exact git commit of oven-sh/bun that was compiled to produce this Bun binary.
index.ts
Bun.revision; // => "49231b2cb9aa48497ab966fc0bb6b742dacc4994"
See Utils.