Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/npm/cli
/ createDef
Function
createDef
workspaces/config/test/index.js:15–15 ·
view source on GitHub ↗
(key, value)
Source
from the content-addressed store, hash-verified
13
14
const
Definition = require(
'../lib/definitions/definition.js'
)
15
const
createDef = (key, value) => ({ [key]:
new
Definition(key, { key, ...value }) })
16
17
const
typeDefs = require(
'../lib/type-defs.js'
)
18
Callers
1
index.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected