Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
const
{ jsonError, outputError } = require(
'../utils/output-error.js'
)
15
16
const
readJson = file => readFile(file,
'utf8'
).then(jsonParse)
17
18
class
View extends BaseCommand {
19
static description =
'View registry info'
Callers
1
exec
Method · 0.70
Calls
2
readFile
Function · 0.50
then
Method · 0.45
Tested by
no test coverage detected