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

Method constructor

lib/cli/exit-handler.js:38–41  ·  view source on GitHub ↗
({ process })

Source from the content-addressed store, hash-verified

36 }
37
38 constructor ({ process }) {
39 this.#process = process
40 this.#process.on('exit', this.#handleProcessExitAndReset)
41 }
42
43 registerUncaughtHandlers () {
44 this.#process.on('uncaughtException', this.#handleExit)

Callers

nothing calls this directly

Calls 1

onMethod · 0.45

Tested by

no test coverage detected