Bun Utils
Use Bun's utility functions to work with the runtime
Install
npx skills add jarle/bun-skills --skill Bun Utilsgit clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-runtime-utils ~/.claude/skills/Bun-UtilsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Utils
> Use Bun's utility functions to work with the runtime
## `Bun.version`
A `string` containing the version of the `bun` CLI that is currently running.
```ts terminal icon="terminal" theme={"theme":{"light":"github-light","dark":"dracula"}}
Bun.version;
// => "1.3.3"
```
## `Bun.revision`
The git commit of [Bun](https://github.com/oven-sh/bun) that was compiled to create the current `bun` CLI.
```ts terminal icon="terminal" theme={"theme":{"light":"github-light","dark":"dracula"}}
Bun.revision;
// => "f02561530fda1ee9396f51c8bc99b38716e38296"
```
## `Bun.env`
An alias for `process.env`.
## `Bun.main`
An absolute path to the entrypoint of the current program (the file that was executed with `bun run`).
```ts script.ts theme={"theme":{"light":"github-light","dark":"dracula"}}
Bun.main;
// /path/to/script.ts
```
This is particular useful for determining whether a script is being directly executed, as opposed to being imported by another script.
```ts theme={"theme":{"light":"github-light","dark":"dracula"}}
if (import.meta.path === Bun.main) {
// this script is being directly executed
} else {
// this file is being imported from another script
}
```
This is analogous to the [`require.main = module` trick](https://stackoverflow.com/questions/6398196/detect-if-called-through-require-or-directly-by-command-line) in Node.js.
## `Bun.sleep()`
`Bun.sleep(ms: number)`
Returns a `Promise` that resolves after the given number of milliseconds.Details
- Skill name
Bun Utils- Repository
- jarle/bun-skills
- Path
skills/bun-runtime-utils/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun Utils skill do?
Use Bun's utility functions to work with the runtime
How do I install the Bun Utils skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun Utils. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun Utils popular?
It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.
Related skills
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Bun Watch Mode
9jarle/bun-skills
Automatic reloading in Bun with --watch and --hot modes
Bun Start a Cluster of HTTP Servers
9jarle/bun-skills
Run multiple HTTP servers concurrently via the "reusePort" option to share the same port across multiple processes
Bun YAML
9jarle/bun-skills
Use Bun's built-in support for YAML files through both runtime APIs and bundler integration
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.