What problem does it solve?
This skill consolidates Bun file I/O practices for reading, writing, scanning, and deleting files. It explains when to use Bun APIs over node:fs and documents patterns for directories and tool integration within this repo.
Core Features & Use Cases
- Bun.file-based operations: reading text, JSON, and streams; writing via Bun.write; deleting with Bun.file(...).delete().
- Directory and existence handling: path resolution, exists checks, and error handling.
- Scanning and automation: using Bun.Glob for file discovery and automated workflows across packages.
- Use case: orchestrate a build or deployment script that reads a config, updates values, and cleans up temporary files.
Quick Start
Use the bun-file-io skill to read the contents of a file using Bun.file(path).text(), update the data, and perform a cleanup with Bun.file(path).delete().