MCPcopy Create free account
hub / github.com/nodejs/node / #listPackages

Method #listPackages

deps/npm/lib/commands/access.js:130–136  ·  view source on GitHub ↗
(owner, pkg)

Source from the content-addressed store, hash-verified

128 }
129
130 async #listPackages (owner, pkg) {
131 if (!owner) {
132 owner = await getIdentity(this.npm, this.npm.flatOptions)
133 }
134 const pkgs = await libnpmaccess.getPackages(owner, this.npm.flatOptions)
135 this.#output(pkgs, pkg)
136 }
137
138 async #listCollaborators (pkg, user) {
139 const pkgName = await this.#getPackage(pkg, false)

Callers 1

execMethod · 0.95

Calls 1

#outputMethod · 0.95

Tested by

no test coverage detected