MCPcopy Create free account
hub / github.com/babel/babel / installExe

Function installExe

test/runtime-integration/node-versions.mjs:82–87  ·  view source on GitHub ↗
(version, dir)

Source from the content-addressed store, hash-verified

80}
81
82async function installExe(version, dir) {
83 const { body } = await download(
84 `${DIST}/${version}/win-${process.arch}/${NODE_BINARY}`
85 );
86 await pipeline(body, createWriteStream(path.join(dir, NODE_BINARY)));
87}
88
89async function installTarball(version, dir) {
90 const name = `node-${version}-${process.platform}-${process.arch}`;

Callers

nothing calls this directly

Calls 1

downloadFunction · 0.85

Tested by

no test coverage detected