MCPcopy Index your code
hub / github.com/nodejs/node / help

Method help

test/common/quic/test-server.mjs:13–25  ·  view source on GitHub ↗
(options = { stdio: 'inherit' })

Source from the content-addressed store, hash-verified

11 }
12
13 help(options = { stdio: 'inherit' }) {
14 const { promise, resolve, reject } = Promise.withResolvers();
15 const proc = spawn(this.#pathToServer, ['--help'], options);
16 proc.on('error', reject);
17 proc.on('exit', (code, signal) => {
18 if (code === 0) {
19 resolve();
20 } else {
21 reject(new Error(`Process exited with code ${code} and signal ${signal}`));
22 }
23 });
24 return promise;
25 }
26
27 run(address, port, keyFile, certFile, options = { stdio: 'inherit' }) {
28 const { promise, resolve, reject } = Promise.withResolvers();

Callers 3

configure.pyFile · 0.45

Calls 4

spawnFunction · 0.50
resolveFunction · 0.50
rejectFunction · 0.50
onMethod · 0.45

Tested by

no test coverage detected