Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Update example fix

Tomas Valenta60da9d674f55
diff --git a/apps/docs/src/code/js/basics/download_file.js b/apps/docs/src/code/js/basics/download_file.js
index 26a53dca7..5730e4cc8 100644
--- a/apps/docs/src/code/js/basics/download_file.js
+++ b/apps/docs/src/code/js/basics/download_file.js
@@ -3,7 +3,7 @@ import fs from 'node:fs'
const sandbox = await Sandbox.create({ template: 'base' })
-const buffer = await sandbox.downloadFile('path/to/remote/file/inside/sandbox') // $HighlightLine
+const buffer = await sandbox.downloadFile('path/to/remote/file/inside/sandbox', 'buffer') // $HighlightLine
// Save file to local filesystem
fs.writeFileSync('path/to/local/file', buffer)