mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
minor guide fixes for consistency (#16273)
This commit is contained in:
@@ -62,6 +62,14 @@ Bun.stdout;
|
||||
Bun.stderr;
|
||||
```
|
||||
|
||||
### Deleting files (`file.delete()`)
|
||||
|
||||
You can delete a file by calling the `.delete()` function.
|
||||
|
||||
```ts
|
||||
await Bun.file("logs.json").delete()
|
||||
```
|
||||
|
||||
## Writing files (`Bun.write()`)
|
||||
|
||||
`Bun.write(destination, data): Promise<number>`
|
||||
|
||||
Reference in New Issue
Block a user