MCPcopy Index your code
hub / github.com/nodejs/node / errCode

Function errCode

deps/npm/lib/commands/fund.js:16–16  ·  view source on GitHub ↗
(msg, code)

Source from the content-addressed store, hash-verified

14}
15
16const errCode = (msg, code) => Object.assign(new Error(msg), { code })
17
18class Fund extends ArboristWorkspaceCmd {
19 static description = 'Retrieve funding information'

Callers 2

execMethod · 0.85
openFundingUrlMethod · 0.85

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…