MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / getRandomPipe

Function getRandomPipe

src/common/pathUtils.ts:19–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17let pipeCounter = 0;
18
19export const getRandomPipe = () =>
20 path.join(
21 namedSocketDirectory,
22 `node-cdp.${process.pid}-${randomBytes(4).toString('hex')}-${pipeCounter++}.sock`,
23 );
24
25function pathExtensions(env: EnvironmentVars) {
26 if (process.platform !== 'win32') {

Callers 2

innerCreateServerMethod · 0.90
_startServerFunction · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected