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

Method #getStatus

deps/npm/lib/commands/access.js:144–148  ·  view source on GitHub ↗
(pkg)

Source from the content-addressed store, hash-verified

142 }
143
144 async #getStatus (pkg) {
145 const pkgName = await this.#getPackage(pkg, false)
146 const visibility = await libnpmaccess.getVisibility(pkgName, this.npm.flatOptions)
147 this.#output({ [pkgName]: visibility.public ? 'public' : 'private' })
148 }
149
150 async #set (subcmd, pkg) {
151 const [subkey, subval] = subcmd.split('=')

Callers 2

execMethod · 0.95
#setStatusMethod · 0.95

Calls 2

#getPackageMethod · 0.95
#outputMethod · 0.95

Tested by

no test coverage detected