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

Function safeNpa

lib/commands/outdated.js:12–18  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

10const ArboristWorkspaceCmd = require('../arborist-cmd.js')
11
12const safeNpa = (spec) => {
13 try {
14 return npa(spec)
15 } catch {
16 return null
17 }
18}
19
20// This string is load bearing and is shared with Arborist
21const MISSING = 'MISSING'

Callers 1

#getOutdatedInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected