MCPcopy Index your code
hub / github.com/nodejs/corepack / isValidBinSpec

Function isValidBinSpec

sources/corepackUtils.ts:139–141  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

137}
138
139function isValidBinSpec(x: unknown): x is BinSpec {
140 return typeof x === `object` && x !== null && !Array.isArray(x) && Object.keys(x).length > 0;
141}
142
143async function download(installTarget: string, url: string, algo: string, binPath: string | null = null): Promise<DownloadSpec> {
144 // Creating a temporary folder inside the install folder means that we

Callers 1

installVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…