✓ Verified 💻 Development ✓ Enhanced Data

Bun Runtime

Bun runtime capabilities for filesystem, process.

Rating
4.4 (451 reviews)
Downloads
3,248 downloads
Version
1.0.0

Overview

Bun runtime capabilities for filesystem, process.

Complete Documentation

View Source →

Bun Runtime

Native Bun runtime operations for filesystem, process, and network tasks.

When to Use

Use this skill when:

  • Working with Bun's native file APIs (Bun.file(), Bun.write(), Bun.glob())
  • Need optimized I/O operations in Bun environment
  • Running Bun-specific process commands
  • Making network requests with Bun's fetch

Filesystem Operations

Read File

bash
scripts/bun-fs.sh read /path/to/file.txt

Returns JSON: {"content": "file contents"}

Write File

bash
scripts/bun-fs.sh write /path/to/file.txt "content here"

Creates parent directories automatically. Returns JSON: {"written": true, "path": "/path/to/file.txt"}

Glob Files

bash
scripts/bun-glob.sh "/tmp/*.txt"

Returns JSON: {"files": ["/tmp/file1.txt", "/tmp/file2.txt"], "count": 2}

Process Operations

Execute Command

bash
scripts/bun-process.sh "ls -la"

Runs shell command and returns output.

Network Operations

HTTP Request

bash
scripts/bun-fetch.sh "https://api.example.com" "GET"

Makes HTTP request using Bun's native fetch.

Notes

  • All scripts use Bun's native APIs for better performance
  • File operations automatically handle encoding
  • Errors are returned with clear messages

Installation

Terminal bash

openclaw install bun-runtime
    
Copied!

💻Code Examples

scripts/bun-fs.sh read /path/to/file.txt

scriptsbun-fssh-read-pathtofiletxt.txt
Returns JSON: `{"content": "file contents"}`

### Write File

scripts/bun-fs.sh write /path/to/file.txt "content here"

scriptsbun-fssh-write-pathtofiletxt-content-here.txt
Creates parent directories automatically.
Returns JSON: `{"written": true, "path": "/path/to/file.txt"}`

### Glob Files

scripts/bun-glob.sh "/tmp/*.txt"

scriptsbun-globsh-tmptxt.txt
Returns JSON: `{"files": ["/tmp/file1.txt", "/tmp/file2.txt"], "count": 2}`

## Process Operations

### Execute Command

scripts/bun-process.sh "ls -la"

scriptsbun-processsh-ls--la.txt
Runs shell command and returns output.

## Network Operations

### HTTP Request

Tags

#cli_utilities

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author rabin-thami
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install bun-runtime