rembrembdocs

Skip to main content

Bun home pagelight logodark logo

[Runtime

](../../../index.md)[Package Manager

](../../../pm/cli/install/index.md)[Bundler

](../../../bundler/index.md)[Test Runner

](../../../test/index.md)[Guides

](../../index.md)[Reference

](https://bun.com/reference)[Blog

](https://bun.com/blog)[Feedback

](../../../feedback/index.md)

Get the current version of Bun in a semver format.

https://mintcdn.com/bun-1dd33a4e/JUhaF6Mf68z_zHyy/icons/typescript.svg?fit=max&auto=format&n=JUhaF6Mf68z_zHyy&q=85&s=7ac549adaea8d5487d8fbd58cc3ea35bindex.ts

Bun.version; // => "1.3.3"

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

https://mintcdn.com/bun-1dd33a4e/JUhaF6Mf68z_zHyy/icons/typescript.svg?fit=max&auto=format&n=JUhaF6Mf68z_zHyy&q=85&s=7ac549adaea8d5487d8fbd58cc3ea35bindex.ts

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

See Docs > API > Utils for more useful utilities.

Was this page helpful?

Suggest editsRaise issue

[

Detect when code is executed with Bun

Previous

](../detect-bun/index.md)[

Hash a password

Next

](../hash-a-password/index.md)