Close the file handle when the writer ends or fails.
Node fs.promises.WriterOptions TypeScript interface | API Reference | Bun BuildDocsReferenceGuidesBlogDiscord/node:fs/promises/WriterOptionsPautoClosePchunkSizePlimitPstart BuildDocsReferenceGuidesBlogDiscord /node:fs/promises/WriterOptionsPautoClosePchunkSizePlimitPstart fs.promises.WriterOptionsinterface WriterOptionsautoClose?: boolean chunkSize?: number limit?: number start?: number
Search the reference...
/
interface
Maximum chunk size in bytes for synchronous write operations. Writes larger than this threshold fall back to async I/O. Set this to match the reader's chunkSize for optimal pipeTo() performance.
Maximum number of bytes the writer will accept. Async writes (write(), writev()) that would exceed the limit reject with ERR_OUT_OF_RANGE. Sync writes (writeSync(), writevSync()) return false.
Byte offset to start writing at. When specified, writes use explicit positioning.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →Node fs.promises.WriterOptions TypeScript interface | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for interface node:fs/promises.WriterOptions | Bun