bun-file-io

Read, write, scan, and delete files using Bun APIs.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/rickross/openfork --skill bun-file-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-file-io
Source: https://github.com/rickross/openfork/tree/main/.opencode/skill/bun-file-io
Command: npx skills add https://github.com/rickross/openfork --skill bun-file-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies and accelerates common file I/O and directory operations in Bun, reducing boilerplate and avoiding repetitive code.

Core Features & Use Cases

  • Read/Write with Bun.file and Bun.write: Programmatically read, write, and stream files with Bun for high-performance I/O.
  • Directory scanning and existence checks: Use Bun.file(...).exists() and Bun.Glob for robust file discovery.
  • Use Case: Imagine you need to update a configuration file across multiple projects; this Skill provides concise commands to read, modify, and persist changes.

Quick Start

Use bun-file-io to read a file named 'config.json' and update its 'version' field, then write the changes back.

Frequently Asked Questions about bun-file-io

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read and write files in Bun for high-performance I/O?

Check file existence in Bun using Bun.file(...).exists(). It provides a robust way to verify file presence before attempting read or write operations, ensuring safety in scripting workflows.

How do I scan a directory and find files matching a pattern in Bun?

Scan directories in Bun using Bun.Glob to discover files matching specific patterns. It supports robust file discovery for both single-file tasks and batch directory operations.

Does this Bun file I/O approach require any specific runtime or dependencies?

Bun file I/O requires the Bun runtime. It uses native Bun.file, Bun.write, and Bun.file(...).exists APIs to perform read, write, and existence check operations without external dependencies.

What is the best way to update a configuration file across multiple projects using Bun?

Update configuration files across projects using Bun by reading the file with Bun.file, modifying the content programmatically, and writing changes back with Bun.write. This reduces repetitive code.

Can I batch delete files and perform directory operations using Bun?

Batch directory operations in Bun include deleting files alongside reading, writing, and scanning. The approach covers everyday project workflows requiring scripting flexibility and safety.