MCPcopy Index your code
hub / github.com/nodejs/node / pkg.js

File pkg.js

deps/npm/test/lib/commands/pkg.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1const { resolve } = require('node:path')
2const { readFileSync } = require('node:fs')
3const t = require('tap')
4const _mockNpm = require('../../fixtures/mock-npm')

Callers

nothing calls this directly

Calls 8

cleanCwdFunction · 0.85
readPackageJsonFunction · 0.85
mockWorkspaceFunction · 0.85
mockNpmFunction · 0.70
mockWorkspacesFunction · 0.70
parseMethod · 0.65
requireFunction · 0.50
testMethod · 0.45

Tested by

no test coverage detected