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

Function readJson

lib/commands/view.js:16–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14const { jsonError, outputError } = require('../utils/output-error.js')
15
16const readJson = file => readFile(file, 'utf8').then(jsonParse)
17
18class View extends BaseCommand {
19 static description = 'View registry info'

Callers 4

execMethod · 0.70
index.jsFile · 0.50
version.jsFile · 0.50
read-json.jsFile · 0.50

Calls 1

readFileFunction · 0.85

Tested by

no test coverage detected