FSWatcher.removeAllListeners method | Node.js fs module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:fs/
FSWatcher/
removeAllListenersMremoveAllListeners
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:fs/
FSWatcher/
removeAllListenersMremoveAllListeners
method
fs.FSWatcher.removeAllListenersremoveAllListenersE extends keyof
FSWatcherEventMap>(eventName?: E): this;
Removes all listeners, or those of the specified eventName.
It is bad practice to remove listeners added elsewhere in the code, particularly when the EventEmitter instance was created by some other component or module (e.g. sockets or file streams).
Returns a reference to the EventEmitter, so that calls can be chained.
removeAllListeners(eventName?: string | symbol): this;
Removes all listeners, or those of the specified eventName.
It is bad practice to remove listeners added elsewhere in the code, particularly when the EventEmitter instance was created by some other component or module (e.g. sockets or file streams).
Returns a reference to the EventEmitter, so that calls can be chained.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →