Interface.close method | Node.js readline/promises module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:readline/promises/
Interface/
closeMclose
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:readline/promises/
Interface/
closeMclose
method
readline.promises.Interface.closeclose(): void;
The rl.close() method closes the Interface instance and relinquishes control over the input and output streams. When called, the 'close' event will be emitted.
Calling rl.close() does not immediately stop other events (including 'line') from being emitted by the Interface instance.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →