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

Method load

lib/npm.js:74–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 async load () {
75 let err
76 try {
77 return await time.start('npm:load', () => this.#load())
78 } catch (e) {
79 err = e
80 }
81 return this.#handleError(err)
82 }
83
84 async #load () {
85 await time.start('npm:load:whichnode', async () => {

Callers 3

#loadMethod · 0.45
setBundleDepsFunction · 0.45
mainFunction · 0.45

Calls 2

#loadMethod · 0.95
#handleErrorMethod · 0.95

Tested by

no test coverage detected