Node fs.close function | API Reference | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:fs/
closeNclose
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:fs/
closeNclose
namespace
fs.closefunction
close(fd: number,callback?:
NoParamCallback): void;
Closes the file descriptor. No arguments other than a possible exception are given to the completion callback.
Calling fs.close() on any file descriptor (fd) that is currently in use through any other fs operation may lead to undefined behavior.
See the POSIX close(2) documentation for more detail.
namespace
closeResources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →