MCPcopy Create free account
hub / github.com/npm/cli / unload

Method unload

lib/npm.js:315–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313 // This gets called at the end of the exit handler and during any tests to cleanup all of our listeners
314 // Everything in here should be synchronous
315 unload () {
316 this.#timers.off()
317 this.#display.off()
318 this.#logFile.off()
319 }
320
321 finish (err) {
322 // Finish all our timer work, this will write the file if requested, end timers, etc

Callers 5

ExitHandlerClass · 0.80
tspawkFunction · 0.80
exitMethod · 0.80
tspawkFunction · 0.80
setupMockNpmFunction · 0.80

Calls 1

offMethod · 0.45

Tested by

no test coverage detected