Read workspace text files securely without modifying system structures.
import fs from 'fs/promises';
export async function readWorkspaceFile(filePath) {
console.log("Bunbox FileReader reading file: " + filePath);
// Simulating secure workspace read
return await fs.readFile(filePath, 'utf-8');
}
{
"name": "file-reader",
"version": "1.0.0",
"main": "index.js",
"permissions": ["fs_read"]
}
$ bunbx install file-reader85db90fc516d9d38dd150ff1...7a6e11c8d50e93...did:key:z6Mkp52AN...✓ Valid Cryptographic Signature