MCPcopy Create free account
hub / github.com/nodejs/node / readJson

Function readJson

deps/npm/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 1

execMethod · 0.70

Calls 2

readFileFunction · 0.50
thenMethod · 0.45

Tested by

no test coverage detected