minor guide fixes for consistency (#16273)

This commit is contained in:
Michael H
2025-01-11 17:38:41 +11:00
committed by GitHub
parent 5b585c393b
commit 2bc70df266
21 changed files with 123 additions and 63 deletions

View File

@@ -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>`