mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
docs: file.stream() is not a promise (#6337)
This commit is contained in:
@@ -8,7 +8,7 @@ The `Bun.file()` function accepts a path and returns a `BunFile` instance. The `
|
||||
const path = "/path/to/package.json";
|
||||
const file = Bun.file(path);
|
||||
|
||||
const stream = await file.stream();
|
||||
const stream = file.stream();
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user