For detailed information, see the documentation of the asynchronous version of this API: write.
Node fs.writeSync function | API Reference | Bun BuildDocsReferenceGuidesBlogDiscord/node:fs/writeSyncFwriteSync BuildDocsReferenceGuidesBlogDiscord /node:fs/writeSyncFwriteSync fs.writeSyncfunction writeSync(fd: number,buffer: ArrayBufferView,offset?: null | number,length?: null | number,position?: null | number): number; @returns function writeSync(fd: number,string: string,position?: null | number,encoding?: null | BufferEncoding): number; @param fd @param string @param position @param encoding
Search the reference...
/
function
The number of bytes written.
Synchronously writes string to the file referenced by the supplied file descriptor, returning the number of bytes written.
A file descriptor.
A string to write.
The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
The expected string encoding.
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.writeSync function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function node:fs.writeSync | Bun