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

Method get

lib/utils/queryable.js:257–262  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

255
256 // return the value for a single query if found; otherwise, returns undefined
257 get (query) {
258 const obj = this.query(query)
259 if (obj) {
260 return obj[query]
261 }
262 }
263
264 // creates objects along the way for the provided `query` parameter and assigns `value` to the last property of the query chain
265 set (query, value, { force } = {}) {

Callers 15

npm-usage.jsFile · 0.45
constructorMethod · 0.45
TimersClass · 0.45
validateLockfileFunction · 0.45
updateWorkspacesFunction · 0.45
runModeMethod · 0.45
pendingSummaryMethod · 0.45
writePolicyChangesMethod · 0.45
runPruneMethod · 0.45
openUrlFunction · 0.45
openUrlPromptFunction · 0.45
adduserFunction · 0.45

Calls 1

queryMethod · 0.95

Tested by

no test coverage detected