MCPcopy Index your code
hub / github.com/nodejs/node / initTree

Method initTree

deps/npm/lib/commands/ls.js:210–221  ·  view source on GitHub ↗
({ arb, args, packageLockOnly })

Source from the content-addressed store, hash-verified

208 }
209
210 async initTree ({ arb, args, packageLockOnly }) {
211 const tree = await (
212 packageLockOnly
213 ? arb.loadVirtual()
214 : arb.loadActual()
215 )
216
217 tree[_include] = args.length === 0
218 tree[_depth] = 0
219
220 return tree
221 }
222}
223
224module.exports = LS

Callers 1

execMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected