MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / nodePath

Function nodePath

scripts/devtools_paths.js:111–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111export function nodePath() {
112 const paths = {
113 darwin: path.join(
114 process.arch === 'arm64' ? 'mac_arm64' : 'mac',
115 process.arch === 'arm64' ? 'node-darwin-arm64' : 'node-darwin-x64',
116 'bin',
117 'node',
118 ),
119 linux: path.join('linux', 'node-linux-x64', 'bin', 'node'),
120 win32: path.join('win', 'node.exe'),
121 };
122 return path.join(thirdPartyPath(), 'node', paths[os.platform()]);
123}
124
125/**
126 * The path to the devtools-frontend node_modules folder.

Callers 2

getLitAnalyzerResultFunction · 0.90
runTypeCheckFunction · 0.90

Calls 3

thirdPartyPathFunction · 0.85
platformMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected