Bun - JS runtime
File API
const foo = Bun.file("foo.txt");
if (await foo.exists()) {
console.log("foo.txt exists");
}
await foo.text(); // contents as a string
await foo.json(); // contents as a JSON object
Skills(SKILL.md)は、AIエージェント(Claude Code、Cursor、Codexなど)に特定の能力を追加するための設定ファイルです。
詳しく見る →const foo = Bun.file("foo.txt");
const foo = Bun.file("foo.txt");
if (await foo.exists()) {
console.log("foo.txt exists");
}
await foo.text(); // contents as a string
await foo.json(); // contents as a JSON object