MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / installPackage

Function installPackage

javascript/selenium-manager/test/index_test.js:48–56  ·  view source on GitHub ↗
(modules, name, binary)

Source from the content-addressed store, hash-verified

46}
47
48function installPackage(modules, name, binary) {
49 const dir = path.join(modules, ...name.split('/'))
50 fs.mkdirSync(path.join(dir, 'bin'), { recursive: true })
51 fs.writeFileSync(path.join(dir, 'package.json'), JSON.stringify({ name }))
52 if (binary) {
53 fs.writeFileSync(path.join(dir, 'bin', binary), '')
54 }
55 return path.join(dir, 'bin', binary ?? '')
56}
57
58function binaryPath(fx, platform, arch, env = {}) {
59 // Inherit the environment: under Bazel, process.execPath is a launcher that

Callers 1

index_test.jsFile · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected